C1001:编译器中包含 <boost/shared_ptr.hpp 时发生内部错误>

C1001: An internal error has occurred in the compiler when including <boost/shared_ptr.hpp>

本文关键字:hpp ptr gt 内部 错误 编译器 包含 lt C1001 boost shared      更新时间:2023-10-16
#include <boost/shared_ptr.hpp>
#include <iostream>
int main()
{
    std::cout << "Hello World!n"; 
}
错误

C1001 中发生内部错误 编译器。日志 c:\local\boost_1_69_0\boost\smart_ptr\shared_ptr.hpp 813

为什么我会收到此错误?我只是包含它,然后出现此错误。我使用具有最新更新的Visual Studio 2017。

我发现问题,一致性模式设置为"是"。