Boost logo

Boost :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2004-03-07 11:17:58


"Peter Dimov" <pdimov_at_[hidden]> 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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk