U++ framework
Do not panic. Ask here before giving up.

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 Go to previous message
captainc is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: !USEMALLOC
Next Topic: Compile error "thread-local storage not supported ..."
Goto Forum:
  


Current Time: Mon May 04 09:18:25 GMT+2 2026

Total time taken to generate the page: 0.00542 seconds