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 hn newest [+] [-] 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". load replies (1) [+] [-] wfunction|8 years ago|reply The problem is the compiler can't necessarily even parse the file with an older version of the language. load replies (2) [+] [-] kccqzy|8 years ago|reply Most compilers stop after encountering a certain number of errors, like 20. load replies (2) [+] [-] 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
[+] [-] 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". load replies (1) [+] [-] wfunction|8 years ago|reply The problem is the compiler can't necessarily even parse the file with an older version of the language. load replies (2) [+] [-] kccqzy|8 years ago|reply Most compilers stop after encountering a certain number of errors, like 20. load replies (2)
[+] [-] 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". load replies (1)
[+] [-] wfunction|8 years ago|reply The problem is the compiler can't necessarily even parse the file with an older version of the language. load replies (2)
[+] [-] kccqzy|8 years ago|reply Most compilers stop after encountering a certain number of errors, like 20. load replies (2)
[+] [-] acidburn1995|8 years ago|reply An easier way would be when you change -std=c++1y to -std=c++03 it won't compile.
[+] [-] a_twig|8 years ago|reply
[+] [-] CJefferson|8 years ago|reply
[+] [-] wfunction|8 years ago|reply
[+] [-] kccqzy|8 years ago|reply
[+] [-] acidburn1995|8 years ago|reply
[+] [-] wcr3|8 years ago|reply