[serialization] cannot build with BOOST_NO_EXCEPTIONS defined

Boost.Serialization tries to be BOOST_NO_EXCEPTIONS-compatible, as it uses boost::throw_exception to throw, but alas the lib does not build when setting the macro, since archive_exception (boost/archive/archive_exception.hpp) is only defined ifndef(BOOST_NO_EXCEPTIONS), so that expressions like boost::throw_exception( archive_exception(archive_exception::unregistered_class)); fail to compile. AFAICS it'd only take for archive_exception to be defined in all cases. Best regards, Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

Hmm - this doesn't look to hard to fix. Robert Ramey JOAQUIN LOPEZ MU?Z wrote:
Boost.Serialization tries to be BOOST_NO_EXCEPTIONS-compatible, as it uses boost::throw_exception to throw, but alas the lib does not build when setting the macro, since archive_exception (boost/archive/archive_exception.hpp) is only defined ifndef(BOOST_NO_EXCEPTIONS), so that expressions like
boost::throw_exception( archive_exception(archive_exception::unregistered_class));
fail to compile. AFAICS it'd only take for archive_exception to be defined in all cases.
Best regards,
Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (2)
-
JOAQUIN LOPEZ MU?Z
-
Robert Ramey