Visual Studio (2015) fpermissive equivalent flag

后端 未结 2 471
暗喜
暗喜 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: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.

提交回复
热议问题