2015-02-10 48 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)