This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Error in stl_bvector.h and vector.tcc


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]