Add priority_queue::value_compare (LWG 2684)
authorJonathan Wakely <jwakely@redhat.com>
Tue, 24 May 2016 15:59:05 +0000 (16:59 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 24 May 2016 15:59:05 +0000 (16:59 +0100)
* include/bits/stl_queue.h (priority_queue::value_compare): Define.

From-SVN: r236646

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

index 30a1cc4356f7f2617dc54ff14de7d455bef20374..449ad0c29438d172116b1bdf25b06fe861845dce 100644 (file)
@@ -1,3 +1,7 @@
+2016-05-24  Jonathan Wakely  <jwakely@redhat.com>
+
+       * include/bits/stl_queue.h (priority_queue::value_compare): Define.
+
 2016-05-23  François Dumont  <fdumont@gcc.gnu.org>
 
        * include/debug/safe_iterator.h
index 9caca03cd0e0d622adb73a390d2b4a88da9e60a8..a292309dbf6d707429e36f40c84afc12d051d8c8 100644 (file)
@@ -417,6 +417,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       typedef typename _Sequence::const_reference           const_reference;
       typedef typename _Sequence::size_type                 size_type;
       typedef          _Sequence                            container_type;
+      // _GLIBCXX_RESOLVE_LIB_DEFECTS
+      // DR 2684. priority_queue lacking comparator typedef
+      typedef         _Compare                             value_compare;
 
     protected:
       //  See queue::c for notes on these names.