Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2008-03-28 19:32:34


Daniel Frey wrote:
> On Fri, 2008-03-28 at 16:20 -0400, Beman Dawes wrote:
>> Looking at config_info results, BOOST_HAS_NRVO doesn't appear to be
>> defined for VC++ 8.0 and later. But see
>> http://msdn2.microsoft.com/en-us/library/ms364057(VS.80).aspx. According
>> to that, 8.0 and later does support the named return value optimization.
>>
>> What am I missing:-?
>
> boost/config/visualc.hpp contains:
>
> #if (_MSC_VER >= 1400) && !defined(_DEBUG)
> # define BOOST_HAS_NRVO
> #endif
>
> where 1400 == VisualC++ 8. Are you looking at a _DEBUG-build?

Ah! Yes.

Thanks,

--Beman


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