|
From: Abhijit S. <mu...@gm...> - 2002-08-19 20:38:28
|
> > I tried doing > > this: > > > > bool operator <(const PlsLine &left, const PlsLine &right) > > > > and the compile worked, but it doesn't seem to sort. > > Any work-around? > > > Yes, you probably made some logical error in the definition of > operator<(). Send us its definition. > The mistake was that the vector was still instantiated with PlsLine *, not with PlsLine. It's working now, thanks. Just for the record, the other form of sort() which takes a comparison function also works, as Eddy said. Of course it works... it's meant to :). ___________________________________________________________ Abhijit Shylanath E-mail: mu...@gm... || ibr...@bi... Web-site: http://mudeth.tripod.com/ |