Visual Studio (2015) fpermissive equivalent flag

后端 未结 2 470
暗喜
暗喜 2021-01-27 09:10

In VS2015 is there an equivalent flag of GCC -fpermissive? That\'s for a cpp application Thanks S.

相关标签:
2条回答
  • 2021-01-27 09:27

    VC++ compiler permissive by default, but you can disable it using compiler flag /permissive- starting with VS2015 Update 3

    0 讨论(0)
  • 2021-01-27 09:41

    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.

    0 讨论(0)
提交回复
热议问题