Qualify type names in <ext/throw_allocator.h>
authorJonathan Wakely <jwakely@redhat.com>
Wed, 23 Oct 2019 16:14:47 +0000 (17:14 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 23 Oct 2019 16:14:47 +0000 (17:14 +0100)
* include/ext/throw_allocator.h (throw_allocator_base): Qualify
size_t and ptrdiff_t.

From-SVN: r277337

libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/throw_allocator.h

index bf0af28ad5605989fc247fbba3707efac0a426a4..55ad108aca8e1e669641d474bb160ea7eee111ae 100644 (file)
@@ -1,5 +1,8 @@
 2019-10-23  Jonathan Wakely  <jwakely@redhat.com>
 
+       * include/ext/throw_allocator.h (throw_allocator_base): Qualify
+       size_t and ptrdiff_t.
+
        * include/ext/pb_ds/detail/bin_search_tree_/bin_search_tree_.hpp:
        Use detail::rebind_traits.
        * include/ext/pb_ds/detail/bin_search_tree_/node_iterators.hpp:
index f5da751eb69b129734595b72492e6318bace1020..a4b9fbc01761f920d5d8d7011295c6db599357ee 100644 (file)
@@ -796,8 +796,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
     : public annotate_base, public _Cond
     {
     public:
-      typedef size_t                           size_type;
-      typedef ptrdiff_t                        difference_type;
+      typedef std::size_t                      size_type;
+      typedef std::ptrdiff_t                   difference_type;
       typedef _Tp                              value_type;
       typedef value_type*                      pointer;
       typedef const value_type*                const_pointer;