summaryrefslogtreecommitdiffstats
path: root/libcxx/include/stack
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/stack
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/stack')
-rw-r--r--libcxx/include/stack3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxx/include/stack b/libcxx/include/stack
index 2992b091ee5..64fd65215d9 100644
--- a/libcxx/include/stack
+++ b/libcxx/include/stack
@@ -112,7 +112,8 @@ 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