Why do I have warning “C4199 two-phase name lookup

2020-06-18 09:05发布

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)?

1条回答
等我变得足够好
2楼-- · 2020-06-18 09:45

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.

MSVC twoPhase option

查看更多
登录 后发表回答