This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] regex construction from basic_string
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Sun, 11 Jan 2009 17:44:03 +0100
- Subject: Re: [PATCH] regex construction from basic_string
- References: <4348dea50901101250s31fca48ah77a13405306c0ed4@mail.gmail.com>
Jonathan Wakely wrote:
> 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?
>
OK, many thanks!
Paolo.