]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++/regex: Remove now unused __dfs_mode template parameter
authorPatrick Palka <ppalka@redhat.com>
Tue, 10 Feb 2026 01:04:12 +0000 (20:04 -0500)
committerPatrick Palka <ppalka@redhat.com>
Tue, 10 Feb 2026 01:04:12 +0000 (20:04 -0500)
commitd3af40eefab378ddcb1a66baa72613b91c83885c
tree6250f3f3b8ceb525e0f7815b8331d0d2f0d62737
parentc49ce07bf09504d1eca66ac7359ca92eab63f106
libstdc++/regex: Remove now unused __dfs_mode template parameter

This mechanical patch removes _Executor's __dfs_mode template parameter.
In passing we can also get rid of the _V2 inline namespace because this
removal alone achieve the goal of the inline namespace which is to make
all of _Executor's member function signatures different from the
previous (GCC < 16) recursive implementation, allowing for safe mixing
of the two incompatible implementations.

libstdc++-v3/ChangeLog:

* include/bits/regex.h (_Executor): Remove __dfs_mode template
parameter and _V2 inline namespace.
* include/bits/regex.tcc (__regex_algo_impl): Adjust after
__dfs_mode template parameter removal.
* include/bits/regex_executor.h (_Executor): Remove __dfs_mode
parameter and _V2 inline namespace.
* include/bits/regex_executor.tcc (_Executor): Likewise.

Reviewed-by: Tomasz KamiƄski <tkaminsk@redhat.com>
Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/include/bits/regex.h
libstdc++-v3/include/bits/regex.tcc
libstdc++-v3/include/bits/regex_executor.h
libstdc++-v3/include/bits/regex_executor.tcc