D
Denver Dash
Hi. I heard once that there is a way to allow a const member function to
alter the value of a member if the member is declared in some way. Can
someone tell me how to do that, or is this impossible?
For example:
class foo
{
specialdeclaration int index;
void bar() const
{
index = 0; \\ ok because index has been declared in a special way.
}
};
thanks,
denver.
alter the value of a member if the member is declared in some way. Can
someone tell me how to do that, or is this impossible?
For example:
class foo
{
specialdeclaration int index;
void bar() const
{
index = 0; \\ ok because index has been declared in a special way.
}
};
thanks,
denver.