cpp:static_cast added

This commit is contained in:
Kolan Sh 2014-04-23 22:20:33 +04:00
parent 93fc0b727d
commit 2222a0a59d
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
class A {
public:
void f () {}
};
int main (void)
{
A a;
void *p = &a;
static_cast<A*>(p)->f();
return 0;
}