VACPP fix

[SVN r15373]
This commit is contained in:
John Maddock
2002-09-16 11:54:41 +00:00
parent a7f8f56d92
commit c7c8400efa

View File

@ -200,7 +200,11 @@ message_data<char>::message_data(const std::locale& l, const std::string& regex_
#ifndef BOOST_NO_STD_MESSAGES #ifndef BOOST_NO_STD_MESSAGES
const std::messages<char>* pm = 0; const std::messages<char>* pm = 0;
#ifndef __IBMCPP__
std::messages<char>::catalog cat = static_cast<std::messages<wchar_t>::catalog>(-1); std::messages<char>::catalog cat = static_cast<std::messages<wchar_t>::catalog>(-1);
#else
std::messages<char>::catalog cat = reinterpret_cast<std::messages<wchar_t>::catalog>(-1);
#endif
if(regex_message_catalogue.size()) if(regex_message_catalogue.size())
{ {
pm = &BOOST_USE_FACET(std::messages<char>, l); pm = &BOOST_USE_FACET(std::messages<char>, l);
@ -592,7 +596,11 @@ message_data<wchar_t>::message_data(const std::locale& l, const std::string& reg
const cvt_type& cvt = BOOST_USE_FACET(cvt_type, l); const cvt_type& cvt = BOOST_USE_FACET(cvt_type, l);
#ifndef BOOST_NO_STD_MESSAGES #ifndef BOOST_NO_STD_MESSAGES
const std::messages<wchar_t>& msgs = BOOST_USE_FACET(std::messages<wchar_t>, l); const std::messages<wchar_t>& msgs = BOOST_USE_FACET(std::messages<wchar_t>, l);
#ifndef __IBMCPP__
std::messages<wchar_t>::catalog cat = static_cast<std::messages<wchar_t>::catalog>(-1); std::messages<wchar_t>::catalog cat = static_cast<std::messages<wchar_t>::catalog>(-1);
#else
std::messages<wchar_t>::catalog cat = reinterpret_cast<std::messages<wchar_t>::catalog>(-1);
#endif
if(regex_message_catalogue.size()) if(regex_message_catalogue.size())
{ {
cat = msgs.open(regex_message_catalogue, l); cat = msgs.open(regex_message_catalogue, l);