Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Regex Build Failure with CPP Locale and No Win32 on WinXP using Visual Studio 2010 SP1
From: John Maddock (boost.regex_at_[hidden])
Date: 2011-04-06 13:55:47

> I'm attempting to build Boost.Regex v1.46.1 with the following user.hpp
> settings:
> #define BOOST_REGEX_NO_W32
> However, this is failing with the following commands (from the root Boost
> directory) on WinXP using Visual Studio 2010 SP1:

> Any ideas? BTW, ICU is properly identified as not being available. Also,
> all the previous modules are compiled successfully.

It's a VC++ issue, just:

std::use_facet<std::messages<unsigned short> >(std::locale());

will give the error :-(

The attached patch works around this, by removing the unsigned short regex
specializations from the library - this will work just fine provided you
don't intend to use boost::wregex with the /Zc:wchar_t- compiler option.

HTH, John.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at