[cfe-commits] [libcxx] r138726 - /libcxx/trunk/include/__split_buffer
Howard Hinnant
hhinnant at apple.com
Sun Aug 28 08:21:29 PDT 2011
Author: hhinnant
Date: Sun Aug 28 10:21:29 2011
New Revision: 138726
URL: http://llvm.org/viewvc/llvm-project?rev=138726&view=rev
Log:
__split_buffer should only require default constructible. Bug found and fixed by Jared Hoberock
Modified:
libcxx/trunk/include/__split_buffer
Modified: libcxx/trunk/include/__split_buffer
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/__split_buffer?rev=138726&r1=138725&r2=138726&view=diff
==============================================================================
--- libcxx/trunk/include/__split_buffer (original)
+++ libcxx/trunk/include/__split_buffer Sun Aug 28 10:21:29 2011
@@ -208,7 +208,7 @@
__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);
More information about the cfe-commits
mailing list