[config] BOOST_HAS_NRVO not defined for VC++ 8.0 and later?

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:-? --Beman

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? Regards, Daniel

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
participants (2)
-
Beman Dawes
-
Daniel Frey