From c7c8400efa8ca37ef3277f520c7f4dfe72620e80 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Mon, 16 Sep 2002 11:54:41 +0000 Subject: [PATCH] VACPP fix [SVN r15373] --- src/cpp_regex_traits.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/cpp_regex_traits.cpp b/src/cpp_regex_traits.cpp index 0f362f26..0c89ad24 100644 --- a/src/cpp_regex_traits.cpp +++ b/src/cpp_regex_traits.cpp @@ -200,7 +200,11 @@ message_data::message_data(const std::locale& l, const std::string& regex_ #ifndef BOOST_NO_STD_MESSAGES const std::messages* pm = 0; +#ifndef __IBMCPP__ std::messages::catalog cat = static_cast::catalog>(-1); +#else + std::messages::catalog cat = reinterpret_cast::catalog>(-1); +#endif if(regex_message_catalogue.size()) { pm = &BOOST_USE_FACET(std::messages, l); @@ -592,7 +596,11 @@ message_data::message_data(const std::locale& l, const std::string& reg const cvt_type& cvt = BOOST_USE_FACET(cvt_type, l); #ifndef BOOST_NO_STD_MESSAGES const std::messages& msgs = BOOST_USE_FACET(std::messages, l); +#ifndef __IBMCPP__ std::messages::catalog cat = static_cast::catalog>(-1); +#else + std::messages::catalog cat = reinterpret_cast::catalog>(-1); +#endif if(regex_message_catalogue.size()) { cat = msgs.open(regex_message_catalogue, l);