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: David Hauck (davidh_at_[hidden])
Date: 2011-04-06 14:17:47


On 2011-04-06 10:55 AM, John Maddock wrote:
>> I'm attempting to build Boost.Regex v1.46.1 with the following
>> user.hpp
>> settings:
>>
>> #define BOOST_REGEX_USE_CPP_LOCALE
>> #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.

Perfect, thx.

Regards,
-David


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net