Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55837 - trunk/boost/regex/v4
From: john_at_[hidden]
Date: 2009-08-28 12:07:14


Author: johnmaddock
Date: 2009-08-28 12:07:13 EDT (Fri, 28 Aug 2009)
New Revision: 55837
URL: http://svn.boost.org/trac/boost/changeset/55837

Log:
Fix for old GCC versions with BOOST_REGEX_BUGGY_CTYPE_FACET defined.
Text files modified:
   trunk/boost/regex/v4/cpp_regex_traits.hpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/boost/regex/v4/cpp_regex_traits.hpp
==============================================================================
--- trunk/boost/regex/v4/cpp_regex_traits.hpp (original)
+++ trunk/boost/regex/v4/cpp_regex_traits.hpp 2009-08-28 12:07:13 EDT (Fri, 28 Aug 2009)
@@ -716,7 +716,7 @@
          cpp_regex_traits_implementation<charT>::mask_unicode,
       };
 #else
- static const char_class_type masks[14] =
+ static const char_class_type masks[16] =
       {
          ::boost::re_detail::char_class_alnum,
          ::boost::re_detail::char_class_alpha,
@@ -837,8 +837,8 @@
       || ((mask & ::boost::re_detail::char_class_blank) && (m_pctype->is(std::ctype<charT>::space, c)) && !::boost::re_detail::is_separator(c))
       || ((mask & ::boost::re_detail::char_class_word) && (c == '_'))
       || ((mask & ::boost::re_detail::char_class_unicode) && ::boost::re_detail::is_extended(c))
- || ((mask & ::boost::re_detail::char_class_vertical) && (is_separator(c) || (c == '\v')))
- || ((mask & ::boost::re_detail::char_class_horizontal) && m_pctype->is(std::ctype<charT>::space, c) && !(is_separator(c) || (c == '\v')));
+ || ((mask & ::boost::re_detail::char_class_vertical_space) && (is_separator(c) || (c == '\v')))
+ || ((mask & ::boost::re_detail::char_class_horizontal_space) && m_pctype->is(std::ctype<charT>::space, c) && !(is_separator(c) || (c == '\v')));
 }
 #endif
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk