1

I am trying to compile a program with boost 1.57.0 using MSVC 11.0 and I get the following error:

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

Is there anything I can do about it?

These posts didn't seem to offer a solution

1 Answer 1

1

I should've thought about this before. The error is a warning promoted to an error through /W4. I managed to fix it by wrapping a warning disable around the include.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.