From c8afc869b0f99c379c00cdec6875ac611e9f5dba Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Thu, 30 Jun 2016 16:03:50 +0000 Subject: [PATCH] Implement LWG#2684: 'priority_queue lacking comparator typedef'. We already did this, just added tests llvm-svn: 274243 --- .../container.adaptors/priority.queue/types.pass.cpp | 4 ++++ libcxx/www/cxx1z_status.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libcxx/test/std/containers/container.adaptors/priority.queue/types.pass.cpp b/libcxx/test/std/containers/container.adaptors/priority.queue/types.pass.cpp index 802cd0029b1e..5690e104ee3c 100644 --- a/libcxx/test/std/containers/container.adaptors/priority.queue/types.pass.cpp +++ b/libcxx/test/std/containers/container.adaptors/priority.queue/types.pass.cpp @@ -15,6 +15,7 @@ // { // public: // typedef Container container_type; +// typedef Compare value_compare; // LWG#2684 // typedef typename container_type::value_type value_type; // typedef typename container_type::reference reference; // typedef typename container_type::const_reference const_reference; @@ -54,6 +55,9 @@ int main() static_assert(( std::is_same::reference, std::vector::reference>::value), ""); static_assert(( std::is_same::const_reference, std::vector::const_reference>::value), ""); static_assert(( std::is_same::size_type, std::vector::size_type>::value), ""); + static_assert(( std::is_same::value_compare, std::less >::value), ""); + static_assert(( std::is_same >::value_compare, std::less >::value), ""); + static_assert(( std::is_same, std::greater >::value_compare, std::greater >::value), ""); static_assert(( std::uses_allocator, std::allocator >::value), ""); static_assert((!std::uses_allocator, std::allocator >::value), ""); test t; diff --git a/libcxx/www/cxx1z_status.html b/libcxx/www/cxx1z_status.html index 35f237d0354c..13d71d1b747f 100644 --- a/libcxx/www/cxx1z_status.html +++ b/libcxx/www/cxx1z_status.html @@ -287,7 +287,7 @@ 2673status() effects cannot be implemented as specifiedOulu 2674Bidirectional iterator requirement on path::iterator is very expensiveOuluComplete 2683filesystem::copy() says "no effects"Oulu - 2684priority_queue lacking comparator typedefOulu + 2684priority_queue lacking comparator typedefOuluComplete 2685shared_ptr deleters must not throw on move constructionOulu 2687{inclusive,exclusive}_scan misspecifiedOulu 2688clamp misses preconditions and has extraneous condition on resultOulu