Re:Torvalds: Standards need to be questioned
by kazinator on Tuesday June 05, 2018 @07:21PM
(#17243010)
BTW, I find this useful when programming in a C dialect that compiles as C:
Very cool; you just use these macros for all your casts, and when building using a C++ compiler, you get additional diagnostics, like that you're accidentally stripping away a const-qualifier.
[ Parent
| on HN ]
Re:Torvalds: Standards need to be questioned
by pjmlp on Wednesday June 06, 2018 @03:17AM
(#17244984)
You just re-invented MFC macros for the C++ features that were being discussed for ISO C++89.
https://docs.microsoft.com/en-us/cpp/mfc/reference/mfc-macro...