How do I distinguish -std=c++17 and -std=gnu++17 at compile time? checking macros?

Subscribers:
4,130
Published on ● Video Link: https://www.youtube.com/watch?v=HmS3OescChk



Duration: 2:12
77 views
3


How do I distinguish -std=c++17 and -std=gnu++17 at compile time? checking macros?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!

(stackoverflow.com/users/212378/alexis-wilke)Alexis Wilke |
(stackoverflow.com/users/1566221/rici)rici |
A special thanks goes out to the (https://stackoverflow.com/questions/74242934/how-do-i-distinguish-std-c17-and-std-gnu17-at-compile-time-checking-macro)Stackexchange community |

I wish you all a wonderful day! Stay safe :)

c-preprocessor std c++ g++







Tags:
c-preprocessor
std
c++
g++