
26 Sep
2006
26 Sep
'06
4:03 p.m.
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