std:vector:resize in gcc4.2
hi,
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 completely changed.
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), numMy) );
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,
bzt