From: Jonathan Wakely Date: Tue, 24 May 2016 15:59:05 +0000 (+0100) Subject: Add priority_queue::value_compare (LWG 2684) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8be062c6da3c656bbe0aaffad15ee4d6674735cb;p=gcc.git Add priority_queue::value_compare (LWG 2684) * include/bits/stl_queue.h (priority_queue::value_compare): Define. From-SVN: r236646 --- 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 + + * include/bits/stl_queue.h (priority_queue::value_compare): Define. + 2016-05-23 François Dumont * 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.