]> git.ipfire.org Git - thirdparty/gcc.git/commit
regex_automaton.h (_State_base, _State<>): Remove _TraitsT dependency from _State...
authorTim Shen <timshen@google.com>
Thu, 30 Jul 2015 10:35:45 +0000 (10:35 +0000)
committerTim Shen <timshen@gcc.gnu.org>
Thu, 30 Jul 2015 10:35:45 +0000 (10:35 +0000)
commit81b7ff079a2851d5f5d3b3a01d18c3af2e165da4
tree35b1028b25f85381df4bc25af72e1c025f3455de
parent15827d124af737d95f4b728d5980f65c5d9bc9b9
regex_automaton.h (_State_base, _State<>): Remove _TraitsT dependency from _State<>...

* include/bits/regex_automaton.h (_State_base, _State<>):
Remove _TraitsT dependency from _State<>; Make matcher member
into the union to reduce struct size.
* include/bits/regex_automaton.tcc (_State_base<>::_M_print,
_State_base<>::_M_dot, _StateSeq<>::_M_clone):
Adjust to fit the interface. Factor out common parts in
_M_clone as _State<>::_M_has_alt.
* include/bits/regex_executor.h (_Executer<>::_M_lookahead):
Only pass state id instead of the whole state.
* include/bits/regex_executor.tcc (_Executer<>::_M_dfs,
_Executer<>::_M_lookahead): Adjust to fit the interface.
* include/std/regex: Include <ext/aligned_buffer.h>

From-SVN: r226395
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/regex_automaton.h
libstdc++-v3/include/bits/regex_automaton.tcc
libstdc++-v3/include/bits/regex_executor.h
libstdc++-v3/include/bits/regex_executor.tcc
libstdc++-v3/include/std/regex