summaryrefslogtreecommitdiffstats
path: root/libcxx/include/queue
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2016-03-14 17:58:11 +0000
committerMarshall Clow <mclow.lists@gmail.com>2016-03-14 17:58:11 +0000
commitc1fe2c43290efca9c3aba9e1ccabeceb2e6d8606 (patch)
treea75e59fb78ee17ed8934b5bf51b24aa77dbb1a13 /libcxx/include/queue
parent8d4e90b3197fc36a1a7c0fcad96e13f1f1f93029 (diff)
downloadbcm5719-llvm-c1fe2c43290efca9c3aba9e1ccabeceb2e6d8606.tar.gz
bcm5719-llvm-c1fe2c43290efca9c3aba9e1ccabeceb2e6d8606.zip
Implement LWG#2566: Requirements on the first template parameter of container adaptors
llvm-svn: 263450
Diffstat (limited to 'libcxx/include/queue')
-rw-r--r--libcxx/include/queue2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/include/queue b/libcxx/include/queue
index 6f49c87acdc..81b83a7701e 100644
--- a/libcxx/include/queue
+++ b/libcxx/include/queue
@@ -198,6 +198,7 @@ public:
typedef typename container_type::reference reference;
typedef typename container_type::const_reference const_reference;
typedef typename container_type::size_type size_type;
+ static_assert((is_same<_Tp, value_type>::value), "" );
protected:
container_type c;
@@ -392,6 +393,7 @@ public:
typedef typename container_type::reference reference;
typedef typename container_type::const_reference const_reference;
typedef typename container_type::size_type size_type;
+ static_assert((is_same<_Tp, value_type>::value), "" );
protected:
container_type c;
OpenPOWER on IntegriCloud