P
prakashsahni
I am using a sort func object like
struct mystruct {
bool operator () (MyClass* const &a, MyClass* const&b) {};
}
Invoke it like
std::sort(vec.begin(), vec.end(),mystruct);
Where vec is an std::vector<MyClass*>.
Everything works fine, except when my vector has more than 8 elements,
there is SEGV inside STL.
I am using Linux64(opteron), linux32(intel). gcc compiler
gcc/v3.2.3p1/bin/g++.
Is this a known issue/ bug , any way to fix this ?
Thanks.
struct mystruct {
bool operator () (MyClass* const &a, MyClass* const&b) {};
}
Invoke it like
std::sort(vec.begin(), vec.end(),mystruct);
Where vec is an std::vector<MyClass*>.
Everything works fine, except when my vector has more than 8 elements,
there is SEGV inside STL.
I am using Linux64(opteron), linux32(intel). gcc compiler
gcc/v3.2.3p1/bin/g++.
Is this a known issue/ bug , any way to fix this ?
Thanks.