On 12/01/2022 09:04, Alessio Mochi via Boost-users wrote:
Hello Gavin, I have not defined BOOST_NO_EXCEPTIONS.
Interesting. The place where you're getting the compilation error is
within this section:
#ifndef BOOST_NO_EXCEPTIONS
#include <exception>
#endif
namespace boost {
namespace serialization {
#ifdef BOOST_NO_EXCEPTIONS
BOOST_NORETURN inline void throw_exception(std::exception const & e) {
::boost::throw_exception(e);
}
#else
template<class E> BOOST_NORETURN inline void throw_exception(E const
& e){
throw e;
}
#endif
} // namespace serialization
} // namespace boost
so BOOST_NO_EXCEPTIONS must be getting declared somewhere, which is
borne out by the include list you provided not showing "exception" in
there (at least, not that I can see).
There is a declaration of boost::throw_exception in
I don't know why a small project with qt and boost serialization work and this one no. I tried to add #include
before include the serialization header, I don't know if it's correct but seem to fix the problem
all.hpp is as here -
https://www.boost.org/doc/libs/1_78_0/boost/exception/all.hpp, which
includes