diff options
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; |

