Home » U++ Library support » U++ Core » are there any sorting routines?
Re: are there any sorting routines? [message #9319 is a reply to message #9294] |
Thu, 26 April 2007 20:16  |
captainc
Messages: 278 Registered: December 2006 Location: New Jersey, USA
|
Experienced Member |
|
|
I defined operator< in my class, but I am still receiving this error:
'error C2678: binary '<' : no operator found which takes a left-hand operand of type 'const VT'
...
while compiling class template member function 'bool Upp::StdLess<T>::operator ()(const T &, const T &) const
...
***Found a solution: I moved the definition/declaration outside the class and used a const function in the class to return the data to the operator< function.
[Updated on: Thu, 26 April 2007 20:37] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon Aug 25 08:28:25 CEST 2025
Total time taken to generate the page: 0.06153 seconds
|