Patch for stl_vector.h and vector.tcc.

Dhruv Matani dhruvbird@gmx.net
Tue Feb 10 11:12:00 GMT 2004


I have attached the patch for the above 2 mentioned files in accordance
with the conversation we had earlier. I have decided to use the Impl
method here, since it seems to be conformant.

Also, I have attached a test case which seg_faults in the older
(unpatched) vector implementation. So, a way of testing whether the
patch worked!


-- 
	-Dhruv Matani.
http://www.geocities.com/dhruvbird/


-------------- next part --------------
2004-02-10  Dhruv Matani  <dhruvbird@gmx.net>

	* bits/stl_vector.h: Created a _Vcetor_impl class and made the
	allocator derive from this class instead of the _Vector_base
	class, which was not conformant. Changed all refereneces to the
	_M_start, _M_finish, and _M_end_of_storage to _M_impl.*.

	* bits/vector.tcc: Same as above (changed all referneces to
	the concerned variables).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.stl_vector.h_dhruv
Type: text/x-patch
Size: 10770 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20040210/73324d6c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.vector.tcc_dhruv
Type: text/x-patch
Size: 17651 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20040210/73324d6c/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alloc_opt.cpp
Type: text/x-c++
Size: 1538 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20040210/73324d6c/attachment-0002.bin>


More information about the Libstdc++ mailing list