summaryrefslogtreecommitdiffstats
path: root/libcxx/include/deque
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2014-03-05 19:06:20 +0000
committerMarshall Clow <mclow.lists@gmail.com>2014-03-05 19:06:20 +0000
commit78a87e8a683d155b5287c8b1a50eef1ab51d0438 (patch)
tree1795b686f73222c123bd09f7c9de513abcd8c8da /libcxx/include/deque
parentf27217ffaff36ec12419e86713ee534c374bf2c5 (diff)
downloadbcm5719-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/include/deque')
-rw-r--r--libcxx/include/deque2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/deque b/libcxx/include/deque
index f099000b137..9b256b74d4f 100644
--- a/libcxx/include/deque
+++ b/libcxx/include/deque
@@ -1208,7 +1208,7 @@ public:
deque()
_NOEXCEPT_(is_nothrow_default_constructible<allocator_type>::value)
{}
- _LIBCPP_INLINE_VISIBILITY deque(const allocator_type& __a) : __base(__a) {}
+ _LIBCPP_INLINE_VISIBILITY explicit deque(const allocator_type& __a) : __base(__a) {}
explicit deque(size_type __n);
#if _LIBCPP_STD_VER > 11
explicit deque(size_type __n, const _Allocator& __a);
OpenPOWER on IntegriCloud