Remove some more using-declarations from namespace __gnu_cxx
authorJonathan Wakely <jwakely@redhat.com>
Wed, 30 Oct 2019 15:48:23 +0000 (15:48 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 30 Oct 2019 15:48:23 +0000 (15:48 +0000)
commitd03eca30d746a097635d8dedc9e059c6b2f80907
treebb65b34ac6799c09bd0cb3bef66acbf9ac1cc319
parent9aeb3bef2cae234dbb90609392e536bafc09365c
Remove some more using-declarations from namespace __gnu_cxx

Similar to some recent patches, this removes using-declarations for
names from namespace std, so that they are not redeclared in __gnu_cxx.

* include/bits/stl_iterator.h (namespace __gnu_cxx): Remove
using-declarations for std::iterator and std::iterator_traits.
(__gnu_cxx::__normal_iterator): Qualify iterator_traits.
* include/ext/algorithm (namespace __gnu_cxx): Remove
using-declarations for std names and qualify those names when used.
Also refer to std::min in parentheses to protect against function-like
macros.
* include/ext/rc_string_base.h: Qualify iterator_traits.
* include/ext/sso_string_base.h: Qualify iterator_traits.

From-SVN: r277630
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_iterator.h
libstdc++-v3/include/ext/algorithm
libstdc++-v3/include/ext/rc_string_base.h
libstdc++-v3/include/ext/sso_string_base.h