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 » Community » Newbie corner » SortedIndex and Less
Re: SortedIndex and Less [message #40860 is a reply to message #40728] Tue, 24 September 2013 17:15 Go to previous messageGo to previous message
keltor is currently offline  keltor
Messages: 73
Registered: February 2012
Member
Thanks to the example above, I have found why I was getting an error. I pretty much wrote the same code, but I also had the following line in my test:

data.FindAdd(rho(1, 2, 3));


which gives an error. But the compiler points at the definition of data instead of at that line, so I thought that my object had something missing.

However, this opens a new question: how to fix this? It looks as if both FindAdd and Add have the same paradigm, yet I get

c:\upp\uppsrc\core\InVector.hpp(237) : error C2664: 'rho &Upp::Vector<T>::Add(const T &)' : cannot convert parameter 1 from 'int' to 'const
	 rho &'
        with
        [
            T=rho
        ]
        Reason: cannot convert from 'int' to 'const rho'


Is this a bug, or am I doing something stupid here?

Edit: Incidentally, I am now using build 6254. Not the latest, I know, but not very old either.

[Updated on: Tue, 24 September 2013 17:17]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Deserialize json object
Next Topic: Confused about ArrayCtrl
Goto Forum:
  


Current Time: Wed May 15 07:42:59 CEST 2024

Total time taken to generate the page: 0.02537 seconds