Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r71038 - trunk/boost/regex
From: john_at_[hidden]
Date: 2011-04-06 13:50:58


Author: johnmaddock
Date: 2011-04-06 13:50:57 EDT (Wed, 06 Apr 2011)
New Revision: 71038
URL: http://svn.boost.org/trac/boost/changeset/71038

Log:
Fix issue with VC10 not compiling std::messages<unsigned short>.
Text files modified:
   trunk/boost/regex/config.hpp | 4 +++-
   1 files changed, 3 insertions(+), 1 deletions(-)

Modified: trunk/boost/regex/config.hpp
==============================================================================
--- trunk/boost/regex/config.hpp (original)
+++ trunk/boost/regex/config.hpp 2011-04-06 13:50:57 EDT (Wed, 06 Apr 2011)
@@ -163,8 +163,10 @@
  * with MSVC and the /Zc:wchar_t option we place some extra unsigned short versions
  * of the non-inline functions in the library, so that users can still link to the lib,
  * irrespective of whether their own code is built with /Zc:wchar_t.
+ * Note that this does NOT WORK with VC10 when the C++ locale is in effect as
+ * the locale's <unsigned short> facets simply do not compile in that case.
  */
-#if defined(__cplusplus) && (defined(BOOST_MSVC) || defined(__ICL)) && !defined(BOOST_NO_INTRINSIC_WCHAR_T) && defined(BOOST_WINDOWS) && !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION) && !defined(BOOST_RWSTD_VER)
+#if defined(__cplusplus) && (defined(BOOST_MSVC) || defined(__ICL)) && !defined(BOOST_NO_INTRINSIC_WCHAR_T) && defined(BOOST_WINDOWS) && !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION) && !defined(BOOST_RWSTD_VER) && ((_MSC_VER < 1600) || !defined(BOOST_REGEX_USE_CPP_LOCALE))
 # define BOOST_REGEX_HAS_OTHER_WCHAR_T
 # ifdef BOOST_MSVC
 # pragma warning(push)


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk