为什么会有警告"C ++/CLI,C ++/CX或openmp不支持C4199两阶段名称查找"? [英] Why do I have warning "C4199 two-phase name lookup is not supported for C++/CLI, C++/CX, or openmp"?

查看:998
本文介绍了为什么会有警告"C ++/CLI,C ++/CX或openmp不支持C4199两阶段名称查找"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目中有很多模板.一切运行正常,但很长一段时间以来,我已经多次收到此警告.我应该继续忽略它还是使用#pragma warning(disable : 4199)?

I have many templates in my project. Everything is running fine but I've been getting this warning many times for a long time now. Should I keep ignoring it or should I use #pragma warning(disable : 4199)?

推荐答案

好.感谢Simon和Raymond的文章,我得以解决它.我的代码中的任何地方都不再有该警告.只需按照文章底部所述添加命令.

Ok Thanks to Simon and Raymond's article I was able to solve it. I no more have that warning anywhere in my code. Just added the command as the article describes at it's very bottom.

这是我为像我这样可能会遇到麻烦的人添加命令的确切位置的图片.

Here's an image of where exactly I added the command for those like me that might have trouble finding it.

这篇关于为什么会有警告"C ++/CLI,C ++/CX或openmp不支持C4199两阶段名称查找"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆