Is it possible to disable compiler warning C4503?

◇◆丶佛笑我妖孽 提交于 2019-12-05 03:44:52

Not clear from the context, but maybe you have too many #pragma statements? MSDN says:

 The compiler only supports up to 56 #pragma warning statements in a compiland.

Bit weird but you can disable this warning using your exact code just by removing the #pragma warning(pop). I don't understand why though.

I should say I'm on VS2010 C++ Express edition.

Maybe stating the obvious but you can use the IDE settings to remove this (and other) warning(s) entirely, as explained here.

That was the only solution that worked for me, and was justified after learning that Boost has warning enable/disable policies built within, which alter the behavior of #pragma push/pop/enable/disable statements.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!