summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2016-05-24 15:59:05 +0000
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2016-05-24 15:59:05 +0000
commit64c647342c0786ae01b4f0b4b4ce716da7faa757 (patch)
tree237e89aecf728d7f958fd72167633bd88cafd7b1
parentca97a2c7a678d3b3f9cc83e1a8d4251e6ffe5e73 (diff)
downloadgcc-64c647342c0786ae01b4f0b4b4ce716da7faa757.tar.gz
Add priority_queue::value_compare (LWG 2684)
* include/bits/stl_queue.h (priority_queue::value_compare): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@236646 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libstdc++-v3/ChangeLog4
-rw-r--r--libstdc++-v3/include/bits/stl_queue.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 30a1cc4356f..449ad0c2943 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -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
diff --git a/libstdc++-v3/include/bits/stl_queue.h b/libstdc++-v3/include/bits/stl_queue.h
index 9caca03cd0e..a292309dbf6 100644
--- a/libstdc++-v3/include/bits/stl_queue.h
+++ b/libstdc++-v3/include/bits/stl_queue.h
@@ -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.