« Return to Thread: Mark throw_exception as noreturn?

Re: Mark throw_exception as noreturn?

by Emil Dotchevski-3 :: Rate this Message:

Reply to Author | View in Thread

On Sun, Jul 5, 2009 at 2:13 AM, Andrey
Semashev<andrey.semashev@...> wrote:
> Emil Dotchevski wrote:
>
>> I've added a macro BOOST_ATTRIBUTE_NORETURN. The problem is fixed for
>> MSVC, feel free to add support for other compilers in
>> boost/exception/detail/attribute_noreturn.hpp.
>
> Should it really be part of Boost.Exception (moreover, private part)? Maybe
> it's better to be in Boost.Config?

Probably the correct place is Boost.Config, but so far
boost::throw_exception (which is part of Boost Exception) seems to be
the only function that needs this macro and I thought we don't have
good enough reason to add weight to Boost.Config at this point. It'll
take no time at all to make BOOST_ATTRIBUTE_NORETURN official if it is
needed elsewhere in the future.

Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

 « Return to Thread: Mark throw_exception as noreturn?