Fix for compilers that define BOOST_NO_STD_MESSAGES.

[SVN r29651]
This commit is contained in:
John Maddock
2005-06-17 11:16:56 +00:00
parent a87dad5cc8
commit c18e751bfc

View File

@ -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);
}
};