header_only_test.cpp 720 B

1234567891011121314151617181920212223
  1. // header_only_test.cpp -----------------------------------------------------//
  2. // Copyright Beman Dawes 2007
  3. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. // See library home page at http://www.boost.org/libs/system
  6. //----------------------------------------------------------------------------//
  7. #include <boost/config/warning_disable.hpp>
  8. #define BOOST_ERROR_CODE_HEADER_ONLY
  9. #include <boost/detail/lightweight_test.hpp>
  10. #include <boost/system/error_code.hpp>
  11. int main( int, char*[] )
  12. {
  13. boost::system::error_code ec( 0, boost::system::system_category() );
  14. return ::boost::report_errors();
  15. }