Skip to content

Commit b4412f2

Browse files
authored
Missing #include in throw_exception.hpp
boost/serialization/throw_exception.hpp does not include the header which defines boost::throw_exception leading to compiler errors unless that header just happens to be #included elsewhere. See this message thread: https://lists.boost.org/boost-users/2022/01/91144.php Likewise the std lib header <exception> is *not* required since we use nothing from that here.
1 parent e4852c6 commit b4412f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/boost/serialization/throw_exception.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <boost/config.hpp>
1919

2020
#ifndef BOOST_NO_EXCEPTIONS
21-
#include <exception>
21+
#include <boost/throw_exception.hpp>
2222
#endif
2323

2424
namespace boost {

0 commit comments

Comments
 (0)