class C { auto (*foo)() -> decltype(this); };
This code is accepted by GCC, MSVC, and clang, but not icc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!