boost_no_excep_std.ipp 682 B

1234567891011121314151617181920212223242526272829303132333435
  1. // (C) Copyright John Maddock 2001.
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. // See http://www.boost.org/libs/config for most recent version.
  6. // MACRO: BOOST_NO_EXCEPTION_STD_NAMESPACE
  7. // TITLE: <exception> is in namespace std
  8. // DESCRIPTION: Some std libs don't put the contents of
  9. // <exception> in namespace std.
  10. #include <exception>
  11. namespace boost_no_exception_std_namespace{
  12. int t(int i)
  13. {
  14. if(i)
  15. std::terminate();
  16. return 0;
  17. }
  18. int test()
  19. {
  20. return t(0);
  21. }
  22. }