diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2014-03-05 19:06:20 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2014-03-05 19:06:20 +0000 |
commit | 78a87e8a683d155b5287c8b1a50eef1ab51d0438 (patch) | |
tree | 1795b686f73222c123bd09f7c9de513abcd8c8da /libcxx/test/containers/associative/multiset | |
parent | f27217ffaff36ec12419e86713ee534c374bf2c5 (diff) | |
download | bcm5719-llvm-78a87e8a683d155b5287c8b1a50eef1ab51d0438.tar.gz bcm5719-llvm-78a87e8a683d155b5287c8b1a50eef1ab51d0438.zip |
Implement LWG 2193. Default constructors for standard library containers are explicit. Note that libc++ already did this for string/deque/forward_list/list/vector and the unordered containers; implement it for set/multiset/map/multimap. Add tests for all the containers. Two drive-by fixes as well: add a missing explicit in <deque>, and remove a tab that snuck into a container test. This issue is also LLVM bug 15724, and resolves it.
llvm-svn: 202994
Diffstat (limited to 'libcxx/test/containers/associative/multiset')
-rw-r--r-- | libcxx/test/containers/associative/multiset/multiset.cons/default.pass.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libcxx/test/containers/associative/multiset/multiset.cons/default.pass.cpp b/libcxx/test/containers/associative/multiset/multiset.cons/default.pass.cpp index b6176c92d2a..5bb0312f012 100644 --- a/libcxx/test/containers/associative/multiset/multiset.cons/default.pass.cpp +++ b/libcxx/test/containers/associative/multiset/multiset.cons/default.pass.cpp @@ -31,5 +31,10 @@ int main() assert(m.empty()); assert(m.begin() == m.end()); } + { + std::multiset<int> m = {}; + assert(m.empty()); + assert(m.begin() == m.end()); + } #endif } |