Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2005-12-11 05:42:09


>> Config info isn't reporting BOOST_HAS_NRVO as being set.
>
> Is config broken, or is MS wrong?
>
> Is config info just a report? I thought it was automatically
> generated.

Yes config_info is just a report, config_test is the consolidated test
program for Boost.Config.

Turning BOOST_HAS_NVRO on for VC8 causes the test program to fail, unless
optimisations are turned on, in which case it is indeed supported.

So I suggest we add:

#if (_MSC_VER >= 1400) && !defined(_DEBUG)
# define BOOST_HAS_NRVO
#endif

to visualc.hpp, note that _DEBUG isn't really the right macro to use here,
but it's as close an approximation as we can get.

Thoughts?

John.


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