top | item 14628070

Easy way to detect where the C++11/C++14 features are used in a C++ project

48 points| virtualcpp | 8 years ago |cppdepend.com | reply

23 comments

order
[+] a_twig|8 years ago|reply
Disable C++11/14 with a compiler flag (or use an old compiler version) and try to build the project :-P
[+] CJefferson|8 years ago|reply
Just this week I reported a compiler bug to clang saying it accepts the c11 keyword _thread_local in c99 mode, and there seems no set of options which will even make it warn me I'm using c11 constructs. It was closed "wontfix".
[+] wfunction|8 years ago|reply
The problem is the compiler can't necessarily even parse the file with an older version of the language.
[+] kccqzy|8 years ago|reply
Most compilers stop after encountering a certain number of errors, like 20.
[+] acidburn1995|8 years ago|reply
An easier way would be when you change -std=c++1y to -std=c++03 it won't compile.
[+] wcr3|8 years ago|reply
thanks for the ad