diff options
author | Howard Hinnant <hhinnant@apple.com> | 2011-08-28 15:21:29 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2011-08-28 15:21:29 +0000 |
commit | b1e3e0e59eddcb97c7ee0c2cfd615c8bb18b854a (patch) | |
tree | fb7e9c22229c17572b4899a1917ca76fc63b5f04 | |
parent | 7ea09c94628161f738243015998fd2c886844e2d (diff) | |
download | bcm5719-llvm-b1e3e0e59eddcb97c7ee0c2cfd615c8bb18b854a.tar.gz bcm5719-llvm-b1e3e0e59eddcb97c7ee0c2cfd615c8bb18b854a.zip |
__split_buffer should only require default constructible. Bug found and fixed by Jared Hoberock
llvm-svn: 138726
-rw-r--r-- | libcxx/include/__split_buffer | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/__split_buffer b/libcxx/include/__split_buffer index 73d9f3518ba..dbf3ce0182a 100644 --- a/libcxx/include/__split_buffer +++ b/libcxx/include/__split_buffer @@ -208,7 +208,7 @@ __split_buffer<_Tp, _Allocator>::__construct_at_end(size_type __n) __alloc_rr& __a = this->__alloc(); do { - __alloc_traits::construct(__a, _VSTD::__to_raw_pointer(this->__end_), value_type()); + __alloc_traits::construct(__a, _VSTD::__to_raw_pointer(this->__end_)); ++this->__end_; --__n; } while (__n > 0); |