
"Peter Dimov" <pdimov@mmltd.net> wrote
Can we not add it to throw_exception.hpp please? It seems that...
As they are written for "internal purpose" only they do not need to be oficially documented, IMO.
... they belong somewhere in detail/, which is the correct place for internal undocumented helpers.
Why not. Maybe <boost/detail/exception_handling_helpers.hpp>? The: #if !(defined BOOST_NO_EXCEPTIONS) # define BOOST_TRY { try # define BOOST_CATCH(x) catch(x) # define BOOST_RETHROW throw # define BOOST_CATCH_END } #else # if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) # define BOOST_TRY { if ("") # define BOOST_CATCH(x) else if (!"") # else # define BOOST_TRY { if (true) # define BOOST_CATCH else if (false) # endif # define BOOST_RETHROW # define BOOST_CATCH_END } #endif from above is hopefully without typos. /Pavel