Added fix for compilers without <locale>.

[SVN r27515]
This commit is contained in:
John Maddock
2005-02-28 10:54:12 +00:00
parent ef25339d94
commit 7c5e1f05c4

View File

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