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/queue | |
| 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/queue')
| -rw-r--r-- | libcxx/include/queue | 2 |
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; |

