• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
6//  See http://www.boost.org/libs/config for most recent version.
7
8//  MACRO:         BOOST_NO_EXCEPTION_STD_NAMESPACE
9//  TITLE:         <exception> is in namespace std
10//  DESCRIPTION:   Some std libs don't put the contents of
11//                 <exception> in namespace std.
12
13#include <exception>
14
15namespace boost_no_exception_std_namespace{
16
17int t(int i)
18{
19   if(i)
20      std::terminate();
21   return 0;
22}
23
24int test()
25{
26   return t(0);
27}
28
29}
30
31
32
33
34
35
36