]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/exception/test/1-throw_exception_test.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / exception / test / 1-throw_exception_test.cpp
index 5106e8621d1531c736f654522a8b54a8a67b3507..349f731607ea759f9c75a3eae5ccba2ab9120705 100644 (file)
@@ -3,11 +3,15 @@
 //Distributed under the Boost Software License, Version 1.0. (See accompanying
 //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
+#include <boost/config.hpp>
+
+#if defined( BOOST_NO_EXCEPTIONS )
+#   error This program requires exception handling.
+#endif
+
 #include <boost/throw_exception.hpp>
 #include <boost/detail/lightweight_test.hpp>
 
-#include <boost/config.hpp>
-
 class my_exception: public std::exception { };
 
 int