cpp:static_cast added
This commit is contained in:
parent
93fc0b727d
commit
2222a0a59d
|
@ -0,0 +1,14 @@
|
|||
class A {
|
||||
public:
|
||||
void f () {}
|
||||
};
|
||||
|
||||
int main (void)
|
||||
{
|
||||
A a;
|
||||
void *p = &a;
|
||||
|
||||
static_cast<A*>(p)->f();
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue