[Bug libstdc++/84769] variant::get(): unscoped call to get<size_t>
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 13 13:25:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84769
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue Mar 13 13:24:36 2018
New Revision: 258482
URL: https://gcc.gnu.org/viewcvs?rev=258482&root=gcc&view=rev
Log:
PR libstdc++/84769 qualify std::get and std::get_if to avoid ADL
Backport from mainline
2018-03-09 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/84769
* include/std/variant (get<_Tp, _Types...>, get_if<_Tp, _Types...>):
Qualify calls to get<_Np, Types...> and get_if<_Np, _Types...>.
Modified:
branches/gcc-7-branch/libstdc++-v3/ChangeLog
branches/gcc-7-branch/libstdc++-v3/include/std/variant
More information about the Gcc-bugs
mailing list