* include/bits/regex.h (match_results::size_type): Use
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Dec 2011 01:47:41 +0000 (01:47 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Dec 2011 01:47:41 +0000 (01:47 +0000)
allocator_traits.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182645 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/regex.h

index 2b56c0e..a8b31b8 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
+
+       * include/bits/regex.h (match_results::size_type): Use
+       allocator_traits.
+
 2011-12-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
 
        PR libstdc++/48362
index cc1abcc..645011d 100644 (file)
@@ -1490,8 +1490,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       typedef const_iterator                                  iterator;
       typedef typename std::iterator_traits<_Bi_iter>::difference_type
                                                               difference_type;
-      /* TODO: needs allocator_traits */
-      typedef typename _Allocator::size_type                  size_type;
+      typedef typename allocator_traits<_Allocator>::size_type
+                                                              size_type;
       typedef _Allocator                                      allocator_type;
       typedef typename std::iterator_traits<_Bi_iter>::value_type
                                                               char_type;