stl_vector.h ::resize in llvm gcc4.2
Daniel Stoltmann
ds@silberstein.de
Wed Feb 29 17:52:00 GMT 2012
hi gcc gnu people,
my name is bastian and i am new to this list. hello !
a week ago i upgraded from gcc4.0 to llvm gcc4.2. everything went
well except for one thing i have really big trouble to figure out
because i am more the audio signal processing kind of guy. so i
really hope someone of you could help me. my issue is that the use
of ::resize in stl_vector.h has changed (or is now conform?).
in gcc4.0 the following code compiled fine:
std::vector< std::vector<myData> > mMy;
std::for_each( mMy.begin(), mMy.end(), std::bind2nd(std::mem_fun_ref
(&std::vector< myData >::resize), numMyData) );
in gcc4.2 it does not compile with error:
no matching function for call to mem_fun_ref ..
i am pretty sure that i do not know how to implement ::resize
correctly, could someone tell me what i have to do get this fixed. i
am happy if you could show me a correct code example, but hints
(books) and keywords that could help me figure this out would also be
greatly appreciated ..
thanks a lot for your help ..
kind regards,
bastian
More information about the Libstdc++
mailing list