K
ken
IN the new gcc 3.3.1 I am getting messages like these:
/data2/office/tools/bootstrp/sstring.cxx:105: error: cannot call
member function `ULONG Container::Count() const' without object
Where the Count is defined like this in the class:
using Container::Count;
So far I have worked around this by creating a member function. The
latest one was a bit above me but I ended up changing the code from:
This just does not make sense to me, surely the compiler should work out
that this is there. In full:
void INetContentTypeParameterList::Clear()
{
while (Count() > 0)
delete static_cast< INetContentTypeParameter * >(this->Remove(Count() - 1));
}
Is this a compiler bug or a stronger enforcement of some standard?
KenF
/data2/office/tools/bootstrp/sstring.cxx:105: error: cannot call
member function `ULONG Container::Count() const' without object
Where the Count is defined like this in the class:
using Container::Count;
So far I have worked around this by creating a member function. The
latest one was a bit above me but I ended up changing the code from:
- 1));delete static_cast< INetContentTypeParameter * >(this->Remove(Count()
This just does not make sense to me, surely the compiler should work out
that this is there. In full:
void INetContentTypeParameterList::Clear()
{
while (Count() > 0)
delete static_cast< INetContentTypeParameter * >(this->Remove(Count() - 1));
}
Is this a compiler bug or a stronger enforcement of some standard?
KenF