From 1f5c0aeb3af704c8ff116f239b09ed9c7d68294c Mon Sep 17 00:00:00 2001 From: John Maddock Date: Mon, 12 Dec 2005 13:38:32 +0000 Subject: [PATCH] std::sprintf may have a conforming signature, but it doesn't actually work on VC7.1, disable it. [SVN r31996] --- include/boost/config/compiler/visualc.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/boost/config/compiler/visualc.hpp b/include/boost/config/compiler/visualc.hpp index aa8ce210..f12ad36a 100644 --- a/include/boost/config/compiler/visualc.hpp +++ b/include/boost/config/compiler/visualc.hpp @@ -63,7 +63,9 @@ #endif -#if _MSC_VER < 1310 // 1310 == VC++ 7.1 +#if _MSC_VER < 1400 +// although a conforming signature for swprint exists in VC7.1 +// it appears not to actually work: # define BOOST_NO_SWPRINTF #endif @@ -82,7 +84,7 @@ // // check for exception handling support: -#ifndef _CPPUNWIND +#ifndef _CPPUNWIND # define BOOST_NO_EXCEPTIONS #endif @@ -95,6 +97,9 @@ #if (_MSC_VER >= 1310) && defined(_MSC_EXTENSIONS) # define BOOST_HAS_LONG_LONG #endif +#if (_MSC_VER >= 1400) && !defined(_DEBUG) +# define BOOST_HAS_NRVO +#endif // // disable Win32 API's if compiler extentions are // turned off: