From bfb24f37e8f806d35d99600c364603e7cef0dd98 Mon Sep 17 00:00:00 2001 From: Pavel Grebnev Date: Tue, 26 Apr 2022 23:03:33 +0200 Subject: [PATCH] Added missed lines of class.mfct.non-static example --- all_section.md | 5 +++++ 1 file changed, 5 insertions(+) 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)