4 ms·
Playing with MSVC's typeof, I've just discovered that its docs [1] have an example that has never worked with any released version of MSVC... MSVC doesn't suppo
by rucikir 1y ago
Playing with MSVC's typeof, I've just discovered that its docs [1] have an example that has never worked with any released version of MSVC... MSVC doesn't support `typeof` applied on function types and function pointers! (bug report [2] [3]). Is there anyone from the compiler team around here? :)
[1]: https://learn.microsoft.com/en-us/cpp/c-language/typeof-c?view=msvc-170 https://learn.microsoft.com/en-us/cpp/c-language/typeof-c?vi...
[2]: https://developercommunity.visualstudio.com/t/Support-for-typeof-Operator-in-C/10407342#T-N10933706 https://developercommunity.visualstudio.com/t/Support-for-ty...
[3]: https://gcc.godbolt.org/z/Kn51qrj99 https://gcc.godbolt.org/z/Kn51qrj99