diff --git a/all_section.md b/all_section.md index 5c14089..fd70c29 100644 --- a/all_section.md +++ b/all_section.md @@ -536,6 +536,11 @@ enclosing object of type D. Otherwise, the behavior is undefined. int f(X*x) { return x->f(); } + + int main() { + A a; + std::cout<< f(reinterpret_cast(&a)); + } ``` - [Examples live](https://godbolt.org/z/0zBLzy)