mirror of
https://github.com/boostorg/python.git
synced 2026-01-21 17:12:22 +00:00
22 lines
226 B
C
22 lines
226 B
C
struct C
|
|
{
|
|
virtual int f(int x = 10)
|
|
{
|
|
return x*2;
|
|
}
|
|
|
|
int foo(int x=1){
|
|
return x+1;
|
|
}
|
|
};
|
|
|
|
int call_f(C& c)
|
|
{
|
|
return c.f();
|
|
}
|
|
|
|
int call_f(C& c, int x)
|
|
{
|
|
return c.f(x);
|
|
}
|