Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2002-12-03 20:55:02

I'd like a macro to detect that a compiler requires a return value
even when no paths return from a function. Example:

    int f()
        throw "hello";

If this fails to compile, we may need to add a dummy "return 0;" at
the end. I know of two compilers which act this way: Metrowerks and


                       David Abrahams
   dave_at_[hidden] *
Boost support, enhancements, training, and commercial distribution

Boost list run by bdawes at, gregod at, cpdaniel at, john at