[PATCH] regex construction from basic_string
Jonathan Wakely
jwakely.gcc@gmail.com
Sat Jan 10 20:51:00 GMT 2009
This fixes basic_regex construction from a basic_string with
non-default char_traits and/or allocator.
* include/tr1_impl/regex (basic_regex::basic_regex): Use range
constructor for _M_pattern.
* testsuite/tr1/7_regular_expressions/basic_regex/ctors/char/
string.cc: Test construction from different basic_string type.
* testsuite/tr1/7_regular_expressions/basic_regex/ctors/wchar_t/
string.cc: Likewise.
tested x86_64 linux, OK to commit?
Jonathan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: regex2.patch
Type: text/x-patch
Size: 2929 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20090110/70d10021/attachment.bin>
More information about the Libstdc++
mailing list