2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-21 17:12:22 +00:00
Files
python/pyste/example/basic.h
Bruno da Silva de Oliveira 29d537571b - Unit tests for the examples
[SVN r17987]
2003-03-19 02:47:29 +00:00

26 lines
252 B
C++

namespace basic {
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);
}
}