Avoid ambiguity between C++2a std::erase_if and LFTS version
authorJonathan Wakely <jwakely@redhat.com>
Tue, 29 Jan 2019 00:47:38 +0000 (00:47 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 29 Jan 2019 00:47:38 +0000 (00:47 +0000)
commitf7f07df5e2ba0047b5ffefe7982058c73759b5cf
tree43620b17d2494ce0e352c3cf7d131d89d1f0e5c2
parent2104ca71da1120a7b2b35e3178624b04d30bdfde
Avoid ambiguity between C++2a std::erase_if and LFTS version

These calls should have been qualified to avoid ADL anyway, but in C++2a
it becomes essential to qualify the calls in experimental::erase because
std::erase_if is also declared and the calls become ambiguous.

* include/experimental/forward_list (experimental::erase): Qualify
call to erase_if.
* include/experimental/list (experimental::erase): Likewise.
* include/std/forward_list (std::erase): Likewise.
* include/std/list (std::erase): Likewise.

From-SVN: r268356
libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/forward_list
libstdc++-v3/include/experimental/list
libstdc++-v3/include/std/forward_list
libstdc++-v3/include/std/list