This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Error in stl_bvector.h and vector.tcc
- From: Hillel (Sabba) Markowitz <sabba dot hillel at verizon dot net>
- To: <gcc at gcc dot gnu dot org>
- Date: Tue, 8 Jun 2004 15:52:21 -0400
- Subject: Error in stl_bvector.h and vector.tcc
- Reply-to: Sabba dot Hillel at verizon dot net
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