Patch: stl_vector.h
Dhruv Matani
dhruvbird@gmx.net
Fri Oct 15 15:58:00 GMT 2004
Sorry, I attached the reverse patch last time around! Stupid me ;-)
-Dhruv.
On Fri, 2004-10-15 at 19:50, Dhruv Matani wrote:
> Hello,
> Selfish as it may seem, this patch makes my program compile with g++40
> once again.
--
-Dhruv Matani.
http://www.geocities.com/dhruvbird/
The price of freedom is responsibility, but it's a bargain, because
freedom is priceless. ~ Hugh Downs
-------------- next part --------------
--- /home/dhruv/projects/cvs_libstdc++-v3/include/bits/stl_vector.h 2004-08-23 17:48:26.000000000 +0530
+++ stl_vector.h 2004-10-15 19:46:30.000000000 +0530
@@ -784,7 +784,8 @@ namespace _GLIBCXX_STD
{
this->_M_impl._M_start = _M_allocate(__n);
this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n;
- std::__uninitialized_fill_n_a(this->_M_impl._M_start, __n, __value,
+ std::__uninitialized_fill_n_a(this->_M_impl._M_start, __n,
+ static_cast<value_type>(__value),
this->get_allocator());
this->_M_impl._M_finish = this->_M_impl._M_end_of_storage;
}
More information about the Libstdc++
mailing list