mirror of
https://github.com/boostorg/exception.git
synced 2025-07-12 20:16:34 +02:00
Compare commits
6 Commits
boost-1.30
...
boost-1.32
Author | SHA1 | Date | |
---|---|---|---|
cc4484958c | |||
088551c445 | |||
ae714358ad | |||
98c7eb7d68 | |||
17f806e8a7 | |||
d1e4951cd5 |
@ -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,9 @@
|
||||
//
|
||||
// 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
|
||||
//
|
||||
@ -33,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