Boost logo

Boost :

From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2006-09-26 12:03:51


Lars Gullik Bjønnes wrote:

> Would the warning go away if throw_exception was marked with
> a gcc extension "no_return"?
>
> If that is easy to accomplish, then we would have a solution
> that does not "pollute" the code. (except at the decl of
> throw_exception)
>
> boost::throw_exception(...) __attribute__ ((__noreturn__));

FWIW, VC++ supports the __declspec(noreturn) for this purpose since _MSC_VER
>= 1200.

Regards Hartmut


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