我想使用MSVC 11.0编译一个升压1.57.0的程序,我得到以下错误:
z:\d\dev\boost_1_57_0\boost\exception\exception.hpp(171) : error C4265: 'boost::exception_detail::error_info_container' but destructor is not virtual instances of this class may not be destructed correctly
有什么我可以做的吗?
这些post似乎没有提供解决scheme
我以前应该想过这个。 错误是通过/W4
提示错误的警告。 我设法通过在include包装上禁用警告来解决这个问题。
#pragma warning(push) #pragma warning(disable : 4265) #include <boost/...> #pragma warning(pop)