Subject: [boost] Mark throw_exception as noreturn?
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2008-10-25 17:39:00
I was wondering why the throw_exception function is not marked as
noreturn? This makes it troublesome to use it as a drop-in replacement
for throw statements as it starts to flag compiler warnings about
missing return statements in non-void functions.
I suggest to mark the function as noreturn at least for compilers that
support it. GCC has __attribute__((noreturn)), MSVC has
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk