I’m writing a C++11 library and I want it to work with every compiler that supports C++11. I don’t want to accidentally write code that isn’t standard (e.g. uses language extensions like VLAs or blocks). How can I force clang to disable all language extensions so that I can only write conformant code?
Share
Try one of these: