can you put non const variables into function call that takes const parameters code example
Example: how to use a non const function from a const function
struct A
{
int i=0;
void foo() const
{
const_cast<A&>(*this).func();
}
void func()
{
i++;
}
};