[Patch] Whole regex refactoring and current status
Tim Shen
timshen91@gmail.com
Thu Aug 8 15:21:00 GMT 2013
On Thu, Aug 8, 2013 at 11:14 PM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
> In my humble opinion involving the whole std::bitset container for a syntax option is way overkill. Do you really have to do overloading between size_t and that type? Or maybe you can use a type *smaller* than unsigned int.
The n3376 standard specified the following constructor:
...
explicit basic_regex(const charT* p, flag_type f = regex_constants::ECMAScript);
basic_regex(const charT* p, size_t len, flag_type f =
regex_constants::ECMAScript);
...
So flag_type shall not be the same as size_t. I don't know if when I
switch flag_type from unsigned int to, say, unsigned short, conflicts
will appear in 16bit archtectures.
--
Tim Shen
More information about the Libstdc++
mailing list