boostorg / exception

Boost.org exception module
http://boost.org/libs/exception
Boost Software License 1.0
16 stars 46 forks source link

info.hpp: warning C4265 given by Visual Studio #33

Closed hanspacket closed 3 years ago

hanspacket commented 4 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:

I can fix this problem locally by adding #pragma warning(disable: 4265) to boost/exception/info.hpp line 25

zajo commented 3 years ago

I need an exact command line that reproduces the problem. Also, which version of Boost?