C
caxmester
Ok this shouldn't be nearly this hard, but i've checked EVERYWHERE from
msdn to scouring google & I can't figure it out.
I basically have a vector of pointers to "aaWord" objects, each of
which contain titles (as strings) and I want to order the vector
alphabetically by those strings. I'm using __gc and pointers and all
that. Visual C++ .NET
vector<gcroot<aaWord __gc*> > *VectorofWords;
Since obviously ordinary sort wouldn't work, I tried making my own
predicate function looking like
static bool op_LessThan( aaWord* a, aaWord* b ){...}
but it throws a Fatal Error C1001 INTERNAL COMPILER ERROR and there's
no way i'm getting through that.
Am I just making a stupid syntax error?
msdn to scouring google & I can't figure it out.
I basically have a vector of pointers to "aaWord" objects, each of
which contain titles (as strings) and I want to order the vector
alphabetically by those strings. I'm using __gc and pointers and all
that. Visual C++ .NET
vector<gcroot<aaWord __gc*> > *VectorofWords;
Since obviously ordinary sort wouldn't work, I tried making my own
predicate function looking like
static bool op_LessThan( aaWord* a, aaWord* b ){...}
but it throws a Fatal Error C1001 INTERNAL COMPILER ERROR and there's
no way i'm getting through that.
Am I just making a stupid syntax error?