Sign in
fuchsia
/
third_party
/
swig
/
refs/tags/v2.0.11
/
.
/
Examples
/
python
/
import_template
/
base.h
blob: c755a6f9d132cbb597db46e6a59be878332cdcdc [
file
] [
log
] [
blame
]
#include
<stdio.h>
template
<
class
T
>
class
Base
{
public
:
Base
()
{
};
virtual
~
Base
()
{
};
virtual
void
A
()
{
printf
(
"I'm Base::A\n"
);
}
void
B
()
{
printf
(
"I'm Base::B\n"
);
}
virtual
Base
<
T
>
*
toBase
()
{
return
static_cast
<
Base
<
T
>
*>(
this
);
}
};