2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 05:22:45 +00:00

no message

[SVN r17931]
This commit is contained in:
Bruno da Silva de Oliveira
2003-03-14 23:39:04 +00:00
parent 2f6cfaf0e9
commit 2e123849fb
2 changed files with 24 additions and 0 deletions

23
pyste/example/virtual.h Normal file
View File

@@ -0,0 +1,23 @@
struct C
{
public:
virtual int f()
{
return f_abs();
}
const char* get_name()
{
return name();
}
protected:
virtual int f_abs() = 0;
private:
virtual const char* name() { return "C"; }
};
int call_f(C& c) { return c.f(); }

View File

@@ -0,0 +1 @@
Class('C', 'virtual.h')