system.hpp 484 B

1234567891011121314151617181920
  1. // Copyright 2009-2010 Vicente J. Botet Escriba
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // See http://www.boost.org/LICENSE_1_0.txt
  4. #ifndef BOOST_CHRONO_DETAIL_SYSTEM_HPP
  5. #define BOOST_CHRONO_DETAIL_SYSTEM_HPP
  6. #if !defined BOOST_CHRONO_DONT_PROVIDE_HYBRID_ERROR_HANDLING
  7. #include <boost/system/error_code.hpp>
  8. namespace boost {
  9. namespace chrono {
  10. inline bool is_throws(system::error_code & ec) { return (&ec==&boost::throws()); }
  11. }
  12. }
  13. #endif
  14. #endif