2 Copyright 2004 Pavel Vozenilek
3 Copyright 2014 Peter Dimov
5 Distributed under the Boost Software License, Version 1.0.
7 See accompanying file LICENSE_1_0.txt
8 or copy at http://boost.org/LICENSE_1_0.txt
11 [section:no_exceptions_support no_exceptions_support]
19 [section Header <boost/core/no_exceptions_support.hpp>]
21 The header `<boost/core/no_exceptions_support.hpp>` defines
22 macros for use in code that needs to be portable to environments
23 that do not have support for C++ exceptions.
28 #define BOOST_TRY /*unspecified*/
29 #define BOOST_CATCH(x) /*unspecified*/
30 #define BOOST_CATCH_END /*unspecified*/
31 #define BOOST_RETHROW /*unspecified*/
42 } BOOST_CATCH(const std::bad_alloc&) {
45 } BOOST_CATCH(const std::exception& e) {
52 With exception support enabled it will expand into:
58 } catch (const std::bad_alloc&) {
61 } catch (const std::exception& e) {
68 With exception support disabled it will expand into: