问题
In VS2015 is there an equivalent flag of GCC -fpermissive? That's for a cpp application Thanks S.
回答1:
VC++ compiler permissive by default, but you can disable it using compiler flag /permissive- starting with VS2015 Update 3
回答2:
The theoretical equivalent is /Ze.
However, this allows Microsoft-specific extensions, whereas -fpermissive allows GCC-specific extensions. If you want your code to be portable, write portable code. It's that simple.
来源:https://stackoverflow.com/questions/36119137/visual-studio-2015-fpermissive-equivalent-flag