diff --git a/doc/history.qbk b/doc/history.qbk index 3be7549f..8de86545 100644 --- a/doc/history.qbk +++ b/doc/history.qbk @@ -15,6 +15,11 @@ Currently open issues can be viewed [@https://svn.boost.org/trac/boost/query?sta All issues including closed ones can be viewed [@https://svn.boost.org/trac/boost/query?status=assigned&status=closed&status=new&status=reopened&component=regex&order=priority&col=id&col=summary&col=status&col=type&col=milestone&col=component here]. +[h4 Boost-1.53] + +Fixed Issues: +[@https://svn.boost.org/trac/boost/ticket/7744 #7744], [@https://svn.boost.org/trac/boost/ticket/7644 #7644]. + [h4 Boost-1.51] Fixed issues: diff --git a/doc/html/boost_regex/background_information.html b/doc/html/boost_regex/background_information.html index 1b0b2063..72f8f389 100644 --- a/doc/html/boost_regex/background_information.html +++ b/doc/html/boost_regex/background_information.html @@ -3,7 +3,7 @@ Background Information - + diff --git a/doc/html/boost_regex/background_information/acknowledgements.html b/doc/html/boost_regex/background_information/acknowledgements.html index a10093fd..629f3ec4 100644 --- a/doc/html/boost_regex/background_information/acknowledgements.html +++ b/doc/html/boost_regex/background_information/acknowledgements.html @@ -3,7 +3,7 @@ Acknowledgements - + diff --git a/doc/html/boost_regex/background_information/examples.html b/doc/html/boost_regex/background_information/examples.html index b566bcd5..d5bb96bb 100644 --- a/doc/html/boost_regex/background_information/examples.html +++ b/doc/html/boost_regex/background_information/examples.html @@ -3,7 +3,7 @@ Test and Example Programs - + @@ -29,7 +29,7 @@
- Test + Test Programs

@@ -45,7 +45,7 @@

Files:

-
- Character + Character Properties

@@ -1003,7 +1003,7 @@

- Word + Word Boundaries

@@ -1023,7 +1023,7 @@

- Buffer + Buffer boundaries

@@ -1051,7 +1051,7 @@

- Continuation + Continuation Escape

@@ -1063,7 +1063,7 @@

- Quoting + Quoting escape

@@ -1077,7 +1077,7 @@

- Unicode + Unicode escapes

@@ -1088,7 +1088,7 @@

- Matching Line + Matching Line Endings

@@ -1097,7 +1097,7 @@

- Keeping back + Keeping back some text

@@ -1112,7 +1112,7 @@

- Any + Any other escape

@@ -1121,7 +1121,7 @@

- Perl Extended + Perl Extended Patterns

@@ -1130,7 +1130,7 @@

- Named + Named Subexpressions

@@ -1152,14 +1152,14 @@

- Comments + Comments

(?# ... ) is treated as a comment, it's contents are ignored.

- Modifiers + Modifiers

(?imsx-imsx ... ) alters which of the perl modifiers are @@ -1173,7 +1173,7 @@

- Non-marking + Non-marking groups

@@ -1182,7 +1182,7 @@

- Branch + Branch reset

@@ -1205,7 +1205,7 @@

- Lookahead + Lookahead

(?=pattern) consumes zero characters, only if pattern @@ -1228,7 +1228,7 @@

- Lookbehind + Lookbehind

(?<=pattern) consumes zero characters, only if pattern @@ -1242,7 +1242,7 @@

- Independent + Independent sub-expressions

@@ -1255,7 +1255,7 @@

- Recursive + Recursive Expressions

@@ -1282,7 +1282,7 @@

- Conditional + Conditional Expressions

@@ -1304,7 +1304,7 @@

Here is a summary of the possible predicates:

-

- What + What gets matched

@@ -1565,7 +1565,7 @@

- Variations + Variations

The options @@ -1574,7 +1574,7 @@

- Options + Options

There are a variety @@ -1586,7 +1586,7 @@

- Pattern + Pattern Modifiers

@@ -1598,7 +1598,7 @@

- References + References

Perl 5.8. diff --git a/doc/html/boost_regex/unicode.html b/doc/html/boost_regex/unicode.html index b8af3f00..43f1c7ec 100644 --- a/doc/html/boost_regex/unicode.html +++ b/doc/html/boost_regex/unicode.html @@ -3,7 +3,7 @@ Unicode and Boost.Regex - + @@ -31,7 +31,7 @@

- Rely + Rely on wchar_t

@@ -41,7 +41,7 @@ std::iswlower etc), then you can use boost::wregex to process Unicode. However, there are several disadvantages to this approach:

-
- +

Last revised: March 28, 2012 at 11:56:40 GMT

Last revised: November 29, 2012 at 10:11:43 GMT


diff --git a/include/boost/regex/v4/cpp_regex_traits.hpp b/include/boost/regex/v4/cpp_regex_traits.hpp index bcae455a..d60942f0 100644 --- a/include/boost/regex/v4/cpp_regex_traits.hpp +++ b/include/boost/regex/v4/cpp_regex_traits.hpp @@ -20,6 +20,7 @@ #define BOOST_CPP_REGEX_TRAITS_HPP_INCLUDED #include +#include #ifndef BOOST_NO_STD_LOCALE @@ -107,12 +108,14 @@ template typename parser_buf::pos_type parser_buf::seekoff(off_type off, ::std::ios_base::seekdir way, ::std::ios_base::openmode which) { + typedef typename boost::int_t::least cast_type; + if(which & ::std::ios_base::out) return pos_type(off_type(-1)); std::ptrdiff_t size = this->egptr() - this->eback(); std::ptrdiff_t pos = this->gptr() - this->eback(); charT* g = this->eback(); - switch(way) + switch(static_cast(way)) { case ::std::ios_base::beg: if((off < 0) || (off > size))