Closed hanspacket closed 3 years ago
This issue is very similar to https://github.com/boostorg/exception/issues/23: when enabling warning C4265 as error, the following error is triggered in boost/exception/info.hpp:
info.hpp(157): error C4265: 'boost::exception_detail::error_info_container_impl': class has virtual functions, but destructor is not virtual instances of this class may not be destructed correctly
The issue can be reproduced using https://github.com/ivsgroup/boost_warnings_minimal_demo, but with a few differences:
#include <boost/algorithm/hex.hpp>
I can fix this problem locally by adding #pragma warning(disable: 4265) to boost/exception/info.hpp line 25
#pragma warning(disable: 4265)
I need an exact command line that reproduces the problem. Also, which version of Boost?
This issue is very similar to https://github.com/boostorg/exception/issues/23: when enabling warning C4265 as error, the following error is triggered in boost/exception/info.hpp:
info.hpp(157): error C4265: 'boost::exception_detail::error_info_container_impl': class has virtual functions, but destructor is not virtual instances of this class may not be destructed correctly
The issue can be reproduced using https://github.com/ivsgroup/boost_warnings_minimal_demo, but with a few differences:
#include <boost/algorithm/hex.hpp>
I can fix this problem locally by adding
#pragma warning(disable: 4265)
to boost/exception/info.hpp line 25