[patch 3/N] std::regex refactoring - _Executor DFS / BFS
Tim Shen
timshen91@gmail.com
Mon Apr 28 20:05:00 GMT 2014
On Mon, Apr 28, 2014 at 3:29 PM, Jonathan Wakely <jwakely@redhat.com> wrote:
> I'm testing the attached patch now. It compiles slightly faster
> (-ftime-report shows, as expected, that less time is spent in template
> instantiation).
>
> I'd also like to change __match_mode from a bool to an enum like:
>
> enum _Match_mode { _S_exact_match, _S_prefix_match };
>
> Because I find it easier to read something like:
>
> if (__match_mode == _S_exact_match)
> // ...
>
> rather than
>
> if (__match_mode)
> // ...
Oh this is nice, good to know.
Thanks!
--
Regards,
Tim Shen
More information about the Libstdc++
mailing list