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   |
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
|
|
|
Goto Forum:
Current Time: Sun Apr 27 23:53:04 CEST 2025
Total time taken to generate the page: 0.01562 seconds
|