Andrew Pinski wrote:

But any thing else would just be a violation of the C and C++ standards.

I don't see that at all, optional switches/pragmas/directives that
subset the language are in no ways violation of the standards. THe
standard only requires that you have a mode in which the standard
semantics and syntax is enforced. It does not prohibit other
possibilities (think of them simply as non-C++ dialects that your
system can support).

If you want a feature like this, it would be better if you get the C and
C++ standards to change (which I really doubt they will).

Alternatively, buy, build, or have built, a tool that detects this and
any other feature of C++ that you would like to exclude, and include
running this tool as part of your compilation

Reply via email to