In boost 1.48.0 I find this in the regex code (boost/regex/v4/w32_regex_traits.hpp):
w32_regex_traits()
: m_pimpl(re_detail::create_w32_regex_traits<charT>(::boost::re_detail::w32_get_default_locale()))
{ }
//...//
BOOST_REGEX_DECL lcid_type BOOST_REGEX_CALL w32_get_default_locale()
{
return ::GetUserDefaultLCID();
}
I need to override this w32_get_default_locale() since I always want US locale to be set. How can this be done without modifying the source code?