mirror of
https://github.com/boostorg/exception.git
synced 2025-07-05 08:46:36 +02:00
Compare commits
9 Commits
boost-1.29
...
boost-1.35
Author | SHA1 | Date | |
---|---|---|---|
452f58496e | |||
12029f86ba | |||
fb54e7da5d | |||
1e7a50ca2a | |||
ae714358ad | |||
98c7eb7d68 | |||
17f806e8a7 | |||
d1e4951cd5 | |||
2f59c2a05e |
@ -1,8 +1,10 @@
|
||||
#ifndef BOOST_THROW_EXCEPTION_HPP_INCLUDED
|
||||
#define BOOST_THROW_EXCEPTION_HPP_INCLUDED
|
||||
|
||||
#if _MSC_VER >= 1020
|
||||
#pragma once
|
||||
// MS compatible compilers support #pragma once
|
||||
|
||||
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
||||
# pragma once
|
||||
#endif
|
||||
|
||||
//
|
||||
@ -10,10 +12,11 @@
|
||||
//
|
||||
// Copyright (c) 2002 Peter Dimov and Multi Media Ltd.
|
||||
//
|
||||
// Permission to copy, use, modify, sell and distribute this software
|
||||
// is granted provided this copyright notice appears in all copies.
|
||||
// This software is provided "as is" without express or implied
|
||||
// warranty, and with no claim as to its suitability for any purpose.
|
||||
// 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)
|
||||
//
|
||||
// http://www.boost.org/libs/utility/throw_exception.html
|
||||
//
|
||||
|
||||
#include <boost/config.hpp>
|
||||
@ -31,7 +34,7 @@ void throw_exception(std::exception const & e); // user defined
|
||||
|
||||
#else
|
||||
|
||||
template<class E> void throw_exception(E const & e)
|
||||
template<class E> inline void throw_exception(E const & e)
|
||||
{
|
||||
throw e;
|
||||
}
|
||||
|
Reference in New Issue
Block a user