Boost logo

Boost :

Subject: [boost] [config] BOOST_CONSTEXPR and C++0x constexpr
From: Vicente Botet Escriba (vicente.botet_at_[hidden])
Date: 2009-11-29 16:21:55


Hi,

I was wondering if it will be useful to define BOOST_CONSTEXPR as follows

#if defined(BOOST_NO_CONSTEXPR)
#define BOOST_CONSTEXPR
#else
#define BOOST_CONSTEXPR constexpr
#endif

and if it is correct to use it as for example

static BOOST_CONSTEXPR Rep zero();

If this is the case, could this be added to Boost.Config? If not, what I'm
missing?

Best,
Vicente
 

-- 
View this message in context: http://old.nabble.com/-config--BOOST_CONSTEXPR-and-C%2B%2B0x-constexpr-tp26566222p26566222.html
Sent from the Boost - Dev mailing list archive at Nabble.com.

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