mirror of
https://github.com/boostorg/regex.git
synced 2025-07-16 13:52:17 +02:00
Allow std::locale's to not have a messages facet installed (fixes some STLPort issues).
Allow match_results to handle singular iterators. Update docs to match. [SVN r57860]
This commit is contained in:
@ -42,7 +42,7 @@ void cpp_regex_traits_char_layer<char>::init()
|
||||
std::messages<char>::catalog cat = reinterpret_cast<std::messages<char>::catalog>(-1);
|
||||
#endif
|
||||
std::string cat_name(cpp_regex_traits<char>::get_catalog_name());
|
||||
if(cat_name.size())
|
||||
if(cat_name.size() && (m_pmessages != 0))
|
||||
{
|
||||
cat = this->m_pmessages->open(
|
||||
cat_name,
|
||||
|
Reference in New Issue
Block a user