Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Aug 25 05:07:29 CEST 2025

Total time taken to generate the page: 0.05929 seconds