template <class TRAITS>
class cBase
{
public:
long dataMember;
};
template <class TRAITS>
class cDerived : public cBase<TRAITS>
{
public:
void foo()
{
cBase<TRAITS>::dataMember = 5; // this works ok
this->dataMember = 5; // this works ok
dataMember = 5; // this causes an error with dataMember not found
}
};
strangeness in gcc 4.0
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement