Fix std::unordered_map deduction guide
authorStephan Bergmann <sbergman@redhat.com>
Mon, 27 Nov 2017 16:43:39 +0000 (16:43 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 27 Nov 2017 16:43:39 +0000 (16:43 +0000)
2017-11-27  Stephan Bergmann  <sbergman@redhat.com>

* include/bits/unordered_map.h (unordered_map): Fix deduction guide.
* include/debug/unordered_map (unordered_map): Likewise.

From-SVN: r255174

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/unordered_map.h
libstdc++-v3/include/debug/unordered_map

index d098ccc..44641eb 100644 (file)
@@ -1,3 +1,8 @@
+2017-11-27  Stephan Bergmann  <sbergman@redhat.com>
+
+       * include/bits/unordered_map.h (unordered_map): Fix deduction guide.
+       * include/debug/unordered_map (unordered_map): Likewise.
+
 2017-11-23  Jonathan Wakely  <jwakely@redhat.com>
 
        * libsupc++/new (launder): Add nodiscard attribute.
index cb5bcb8..27c89f1 100644 (file)
@@ -1193,7 +1193,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
     -> unordered_map<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>;
 
   template<typename _Key, typename _Tp, typename _Allocator,
-          _RequireAllocator<_Allocator>>
+          typename = _RequireAllocator<_Allocator>>
     unordered_map(initializer_list<pair<_Key, _Tp>>, _Allocator)
     -> unordered_map<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>;
 
index c573430..c68ccaa 100644 (file)
@@ -679,7 +679,7 @@ namespace __debug
     -> unordered_map<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>;
 
   template<typename _Key, typename _Tp, typename _Allocator,
-          _RequireAllocator<_Allocator>>
+          typename = _RequireAllocator<_Allocator>>
     unordered_map(initializer_list<pair<_Key, _Tp>>, _Allocator)
     -> unordered_map<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>;