Boost logo

Boost :

From: Eric Woodruff (Eric.Woodruff_at_[hidden])
Date: 2002-08-18 14:02:12


Does boost do the following when exceptions aren't available?

#define try
#define catch(exception) if (false)

----- Original Message -----
From: Peter Dimov
Newsgroups: gmane.comp.lib.boost.devel
Sent: Tuesday, 2002:August:13 12:04
Subject: Re: Re: boost::throw_exception()?

From: "Eric Woodruff" <Eric.Woodruff_at_[hidden]>
> If that is in the user area of the namespace, why isn't it a template so
> clients of boost can benefit from it as well with any exception type?

The boost::throw_exception hook is only defined by the user when Boost is
compiled with BOOST_NO_EXCEPTIONS. When exception support is available, the
definition is

template<class E> void throw_exception(E const & e)
{
    throw e;
}

> ----- Original Message -----
> From: Peter Dimov
> Newsgroups: gmane.comp.lib.boost.devel
> Sent: Tuesday, 2002:August:13 10:00 AM
> Subject: boost::throw_exception()?
>
>
> To get "exceptionless" support into this release, I need a resolution on
the
> "Boost user error handler policy." Is ::boost_throw() acceptable? If not,
is
>
> namespace boost
> {
> void throw_exception(std::exception const & e); // user defined
> }
>
> acceptable?

_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost


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