mirror of
https://github.com/boostorg/throw_exception.git
synced 2025-07-16 22:12:04 +02:00
Warnings
[SVN r60638]
This commit is contained in:
committed by
Peter Dimov
parent
c87e86eff8
commit
b76f705b90
@ -1,5 +1,11 @@
|
|||||||
#ifndef BOOST_THROW_EXCEPTION_HPP_INCLUDED
|
#ifndef BOOST_THROW_EXCEPTION_HPP_INCLUDED
|
||||||
#define BOOST_THROW_EXCEPTION_HPP_INCLUDED
|
#define BOOST_THROW_EXCEPTION_HPP_INCLUDED
|
||||||
|
#if defined(__GNUC__) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS)
|
||||||
|
#pragma GCC system_header
|
||||||
|
#endif
|
||||||
|
#if defined(_MSC_VER) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS)
|
||||||
|
#pragma warning(push,1)
|
||||||
|
#endif
|
||||||
|
|
||||||
// MS compatible compilers support #pragma once
|
// MS compatible compilers support #pragma once
|
||||||
|
|
||||||
@ -20,7 +26,6 @@
|
|||||||
// http://www.boost.org/libs/utility/throw_exception.html
|
// http://www.boost.org/libs/utility/throw_exception.html
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <boost/exception/detail/attribute_noreturn.hpp>
|
|
||||||
#include <boost/detail/workaround.hpp>
|
#include <boost/detail/workaround.hpp>
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
#include <exception>
|
#include <exception>
|
||||||
@ -71,7 +76,7 @@ void throw_exception( std::exception const & e ); // user defined
|
|||||||
|
|
||||||
inline void throw_exception_assert_compatibility( std::exception const & ) { }
|
inline void throw_exception_assert_compatibility( std::exception const & ) { }
|
||||||
|
|
||||||
template<class E> BOOST_ATTRIBUTE_NORETURN inline void throw_exception( E const & e )
|
template<class E> inline void throw_exception( E const & e )
|
||||||
{
|
{
|
||||||
//All boost exceptions are required to derive from std::exception,
|
//All boost exceptions are required to derive from std::exception,
|
||||||
//to ensure compatibility with BOOST_NO_EXCEPTIONS.
|
//to ensure compatibility with BOOST_NO_EXCEPTIONS.
|
||||||
@ -88,4 +93,7 @@ template<class E> BOOST_ATTRIBUTE_NORETURN inline void throw_exception( E const
|
|||||||
|
|
||||||
} // namespace boost
|
} // namespace boost
|
||||||
|
|
||||||
|
#if defined(_MSC_VER) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS)
|
||||||
|
#pragma warning(pop)
|
||||||
|
#endif
|
||||||
#endif // #ifndef BOOST_THROW_EXCEPTION_HPP_INCLUDED
|
#endif // #ifndef BOOST_THROW_EXCEPTION_HPP_INCLUDED
|
||||||
|
Reference in New Issue
Block a user