#include <iostream>
struct A
{
int foo( int i ) { std::cout << "A::foo(int)\n" ; return i+3 ; }
int twice_foo( int i ) { return foo(i) * 2 ; }
};
int main()
{
A a ;
std::cout << a.twice_foo(7) << '\n' ;
}
EDIT: > Turns out my operator+ has to const which is why I can't.