V
vladimir
All,
I have seemingly quite known problem, namely I need to watch overloaded
[] in quick watch(by own vector) but I can not. It says overloaded
operator is not found. And that is claimed normal here (at least once).
But I have a project where at least for local class variables [] can be
watched. I see absolutely no difference in settings/options, and the
class is just copied from old project. Ans it is template class (if it
does matter).
template <class T>
class CVector
{
public:
//! Number of elements of the vector.
int m_nLength;
//! Pointer to elements of the vector
T* p;
........
//! Get ith element of a vector. use as vector
T& operator[] (int i) const
{
return p;
}
..............
}
making this inline operator (if it indeed become one) does not help.
Not very important but still would be better to find a way to watch...
Has somebody any idea?
And yes, things should be private, I know...
I have seemingly quite known problem, namely I need to watch overloaded
[] in quick watch(by own vector) but I can not. It says overloaded
operator is not found. And that is claimed normal here (at least once).
But I have a project where at least for local class variables [] can be
watched. I see absolutely no difference in settings/options, and the
class is just copied from old project. Ans it is template class (if it
does matter).
template <class T>
class CVector
{
public:
//! Number of elements of the vector.
int m_nLength;
//! Pointer to elements of the vector
T* p;
........
//! Get ith element of a vector. use as vector
T& operator[] (int i) const
{
return p;
}
..............
}
making this inline operator (if it indeed become one) does not help.
Not very important but still would be better to find a way to watch...
Has somebody any idea?
And yes, things should be private, I know...