Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/serialization/throw_exception.hpp @ 133:4acb5d8d80b6 tip
Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author | Chris Cannam |
---|---|
date | Tue, 30 Jul 2019 12:25:44 +0100 |
parents | c530137014c0 |
children |
rev | line source |
---|---|
Chris@16 | 1 #ifndef BOOST_SERIALIZATION_THROW_EXCEPTION_HPP_INCLUDED |
Chris@16 | 2 #define BOOST_SERIALIZATION_THROW_EXCEPTION_HPP_INCLUDED |
Chris@16 | 3 |
Chris@16 | 4 // MS compatible compilers support #pragma once |
Chris@16 | 5 |
Chris@101 | 6 #if defined(_MSC_VER) |
Chris@16 | 7 # pragma once |
Chris@16 | 8 #endif |
Chris@16 | 9 |
Chris@16 | 10 // boost/throw_exception.hpp |
Chris@16 | 11 // |
Chris@16 | 12 // Copyright (c) 2002 Peter Dimov and Multi Media Ltd. |
Chris@16 | 13 // |
Chris@16 | 14 // Distributed under the Boost Software License, Version 1.0. (See |
Chris@16 | 15 // accompanying file LICENSE_1_0.txt or copy at |
Chris@16 | 16 // http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 17 |
Chris@16 | 18 #include <boost/config.hpp> |
Chris@16 | 19 |
Chris@16 | 20 #ifndef BOOST_NO_EXCEPTIONS |
Chris@16 | 21 #include <exception> |
Chris@16 | 22 #endif |
Chris@16 | 23 |
Chris@16 | 24 namespace boost { |
Chris@16 | 25 namespace serialization { |
Chris@16 | 26 |
Chris@16 | 27 #ifdef BOOST_NO_EXCEPTIONS |
Chris@16 | 28 |
Chris@16 | 29 inline void throw_exception(std::exception const & e) { |
Chris@16 | 30 ::boost::throw_exception(e); |
Chris@16 | 31 } |
Chris@16 | 32 |
Chris@16 | 33 #else |
Chris@16 | 34 |
Chris@16 | 35 template<class E> inline void throw_exception(E const & e){ |
Chris@16 | 36 throw e; |
Chris@16 | 37 } |
Chris@16 | 38 |
Chris@16 | 39 #endif |
Chris@16 | 40 |
Chris@16 | 41 } // namespace serialization |
Chris@16 | 42 } // namespace boost |
Chris@16 | 43 |
Chris@16 | 44 #endif // #ifndef BOOST_SERIALIZATION_THROW_EXCEPTION_HPP_INCLUDED |