F
Fabian Wein
Hi,
is there a way to call a const function from non const function?
I have a non-const
List GetList();
and want my
bool Count() const;
implemented as
bool Foo::Count(...) const
{
return GetList().GetSize();
}
Is there any not to dirty cast trick?
Thanks, Fabian
is there a way to call a const function from non const function?
I have a non-const
List GetList();
and want my
bool Count() const;
implemented as
bool Foo::Count(...) const
{
return GetList().GetSize();
}
Is there any not to dirty cast trick?
Thanks, Fabian