I ran into an interesting problem while debugging SWIG typemaps today. Anyone care to enlighten me why Visual C++ 2008 throws a \"conversion loses qualifiers\" error when co
In following code,
friend ostream & operator<<(ostream & output, const List& other)
{
for(int i=0;i
to remove compilation error "Conversion loses qualifiers", for parameter "const List& other", I changed both following called methods to const.
T* getData() const
{
return data;
}
int length() const
{
return lSize;
}