__split_buffer should only require default constructible. Bug found and fixed by Jared Hoberock
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@138726 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -208,7 +208,7 @@ __split_buffer<_Tp, _Allocator>::__construct_at_end(size_type __n)
|
|||||||
__alloc_rr& __a = this->__alloc();
|
__alloc_rr& __a = this->__alloc();
|
||||||
do
|
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_;
|
++this->__end_;
|
||||||
--__n;
|
--__n;
|
||||||
} while (__n > 0);
|
} while (__n > 0);
|
||||||
|
Reference in New Issue
Block a user