diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2016-03-14 17:58:11 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2016-03-14 17:58:11 +0000 |
commit | c1fe2c43290efca9c3aba9e1ccabeceb2e6d8606 (patch) | |
tree | a75e59fb78ee17ed8934b5bf51b24aa77dbb1a13 /libcxx/include/stack | |
parent | 8d4e90b3197fc36a1a7c0fcad96e13f1f1f93029 (diff) | |
download | bcm5719-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/stack | 3 |
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; |