"David Abrahams" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
[snip]
> This seems like a very bad solution. It requires solving the
> forwarding constructor problem, for one thing. boost::throw_exception
> doesn't have that problem.

I don't know about boost::throw_exception, but a nonmenber should be
generally preferred to a member. Thus, I find the solution based on member
raise poor. An equivalent free function can be written:

template <class T>
void raise(const T& exc)
{
    #ifdef ...
        throw exc;
    #endif
}


Andrei




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

Reply via email to