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
HP.

-Dave

-- 
                       David Abrahams
   dave_at_[hidden] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

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