From c18e751bfc9607f19ebe81d19e8eb61979b7ed96 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Fri, 17 Jun 2005 11:16:56 +0000 Subject: [PATCH] Fix for compilers that define BOOST_NO_STD_MESSAGES. [SVN r29651] --- include/boost/regex/v4/cpp_regex_traits.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/boost/regex/v4/cpp_regex_traits.hpp b/include/boost/regex/v4/cpp_regex_traits.hpp index 98af56cf..79727558 100644 --- a/include/boost/regex/v4/cpp_regex_traits.hpp +++ b/include/boost/regex/v4/cpp_regex_traits.hpp @@ -173,18 +173,23 @@ struct cpp_regex_traits_base { if(m_pctype == b.m_pctype) { +#ifndef BOOST_NO_STD_MESSAGES if(m_pmessages == b.m_pmessages) { - return m_pcollate < b.m_pcollate; } return m_pmessages < b.m_pmessages; +#else + return m_pcollate < b.m_pcollate; +#endif } return m_pctype < b.m_pctype; } bool operator==(const cpp_regex_traits_base& b)const { return (m_pctype == b.m_pctype) +#ifndef BOOST_NO_STD_MESSAGES && (m_pmessages == b.m_pmessages) +#endif && (m_pcollate == b.m_pcollate); } };