mirror of
https://github.com/boostorg/regex.git
synced 2025-07-16 13:52:17 +02:00
Fix for compilers that define BOOST_NO_STD_MESSAGES.
[SVN r29651]
This commit is contained in:
@ -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);
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user