Hi,
I am having a problem sorting a vector<MyClass>
Faces3D is a simple class that only hold 3 indexes to vertices, and the Set/Get methods. my compare function is like that...Code:vector<Faces3D> tmp; // std::sort(tmp.begin(),tmp.end(),ZSort);
but, altought it look like all the samples i saw in books and in the board, i get this errorCode:bool ZSort(const Faces3D& left, const Faces3D& right) { // if(/**/)return false; return true; }
the error c2064 translate to somewhat like "the term is not evaluated as a function with 2 args" in englishCode:d:\Arquivos de programas\Microsoft Visual Studio .NET 2003\Vc7\include\algorithm(1862): error C2064: el término no se evalúa como una función con 2 argumentos d:\Arquivos de programas\Microsoft Visual Studio .NET 2003\Vc7\include\algorithm(1863): error C2064: el término no se evalúa como una función con 2 argumentos d:\Arquivos de programas\Microsoft Visual Studio .NET 2003\Vc7\include\algorithm(1863): fatal error C1903: no se puede recuperar de errores anteriores; se detiene la compilación
the error is inside <algorithm>, in _Unguarded_partition template
i am using msvc 2003 .net, spanish version
thanks for any help,
jmgk



LinkBack URL
About LinkBacks


