fatal error C1001: 编译器中发生内部错误。(编译器文件“msc1.cpp”,第 1518 行) 解决方法

我的报错原因是vc编译器和std的max函数相冲突。幸好错误代码行前面写着using std::max;给我指了条明路,将该问题改正。
解决方法:max改为(std::max)
该解决方法应用的报错场景另见Windows Tensorflow C++ API 对mnist模型的测试中,对该博客页面搜索std::max即可找见。
“max”: 找不到标识符这种报错也能通过提到的解决方法解决。
std::max包含在头文件

原文地址:https://www.cnblogs.com/tellw/p/13087423.html