Error in stl_bvector.h and vector.tcc
Hillel Markowitz (Sabba)
sabba.hillel@verizon.net
Tue Jun 8 19:52:00 GMT 2004
While trying to compile code which handles vectors using gcc-3.4.0, I found compile errors in <GCC_ROOT>/include/c++/3.4.0/bits in files stl_bvector.h and vector.tcc
Both sets of code used std::max which failed, but compiled successfully when the reference was changed to max
I do not have a direct connection to the internet so I have to type in the information by hand.
stl_bvector.h lines 522 and 823 had to change from
const size_type __len = size() + std::max(size(), __n);
to
const size_type __len = size() + max(size(), __n);
while vector.tcc lines 307 and 384 had to change from
const size_type __len = __old_size + std::max(__old_size, __n);
to
const size_type __len = __old_size + max(__old_size, __n);
--
Said the fox to the fish, "Join me ashore."
The fish are the Jews, Torah is our water!
Hillel (Sabba) Markowitz
Sabba.Hillel@verizon.net, sabbahem@bcpl.net
More information about the Gcc
mailing list