I have a legacy function that looks like this:
int Random() const { return var_ ? 4 : 0; }
and I need to call a function within that lega
you should alter your program to use/declare const correctly...
one alternative is to use const_cast.