Hello!
I'm getting a compile error on searching for an item index in the array when I pass the const value to find().
For example it's impossible to compile class like this:
class CDataHolder {
private array<CData@> m_arr;
int32 getIndex(const CData@ hData) const {
return m_arr.find(@hData); // <<<<<<< Compile error
}
...
}
The error message is: No matching signatures to 'array::find(const CData@&) const'
But in add-on the find() function is registered as:
... RegisterObjectMethod("array<T>", "int find(const T&in value) const" ...
So it must work with const parameters too. Or I'm wrong with this?
Thanks in advance!