forked from boostorg/regex
Added fix for compilers without <locale>.
[SVN r27515]
This commit is contained in:
@ -782,7 +782,9 @@ struct BoostRegexConcept
|
|||||||
std::ptrdiff_t pt = except.position();
|
std::ptrdiff_t pt = except.position();
|
||||||
ignore_unused_variable_warning(pt);
|
ignore_unused_variable_warning(pt);
|
||||||
const Regex ce, ce2;
|
const Regex ce, ce2;
|
||||||
|
#ifndef BOOST_NO_STD_LOCALE
|
||||||
m_stream << ce;
|
m_stream << ce;
|
||||||
|
#endif
|
||||||
unsigned i = ce.error_code();
|
unsigned i = ce.error_code();
|
||||||
ignore_unused_variable_warning(i);
|
ignore_unused_variable_warning(i);
|
||||||
pointer_type p = ce.expression();
|
pointer_type p = ce.expression();
|
||||||
@ -829,8 +831,10 @@ struct BoostRegexConcept
|
|||||||
m_string = m_char + m_sub;
|
m_string = m_char + m_sub;
|
||||||
ignore_unused_variable_warning(m_string);
|
ignore_unused_variable_warning(m_string);
|
||||||
|
|
||||||
|
#ifndef BOOST_NO_STD_LOCALE
|
||||||
m_stream << m_sub;
|
m_stream << m_sub;
|
||||||
m_stream << m_cresults;
|
m_stream << m_cresults;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
std::basic_ostream<value_type> m_stream;
|
std::basic_ostream<value_type> m_stream;
|
||||||
|
Reference in New Issue
Block a user