2015-02-10 64 views
1

我试图编译使用MSVC 11.0升压1.57.0程序,我得到以下错误:升压“析构函数不是虚拟的”错误在MSVC 11

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 

有什么我可以做它?

这些职位似乎并没有提供解决方案

回答

1

我以前就这个想法。错误是通过/W4提升为错误的警告。我设法通过在include中包含警告禁用来解决它。

#pragma warning(push) 
#pragma warning(disable : 4265) 
#include <boost/...> 
#pragma warning(pop) 
相关问题