annotate DEPENDENCIES/generic/include/boost/exception/N3757.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents f46d142149f5
children
rev   line source
Chris@102 1 //Copyright (c) 2006-2013 Emil Dotchevski and Reverge Studios, Inc.
Chris@102 2
Chris@102 3 //Distributed under the Boost Software License, Version 1.0. (See accompanying
Chris@102 4 //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@102 5
Chris@102 6 #ifndef UUID_9011016A11A711E3B46CD9FA6088709B
Chris@102 7 #define UUID_9011016A11A711E3B46CD9FA6088709B
Chris@102 8 #if (__GNUC__*100+__GNUC_MINOR__>301) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS)
Chris@102 9 #pragma GCC system_header
Chris@102 10 #endif
Chris@102 11 #if defined(_MSC_VER) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS)
Chris@102 12 #pragma warning(push,1)
Chris@102 13 #endif
Chris@102 14
Chris@102 15 #include <boost/exception/info.hpp>
Chris@102 16 #include <boost/exception/get_error_info.hpp>
Chris@102 17
Chris@102 18 namespace
Chris@102 19 boost
Chris@102 20 {
Chris@102 21 //Here we're using the boost::error_info machinery to store the info in the exception
Chris@102 22 //object. Within the context of N3757, this is strictly an implementation detail.
Chris@102 23
Chris@102 24 template <class Tag>
Chris@102 25 inline
Chris@102 26 void
Chris@102 27 exception::
Chris@102 28 set( typename Tag::type const & v )
Chris@102 29 {
Chris@102 30 exception_detail::set_info(*this,error_info<Tag,typename Tag::type>(v));
Chris@102 31 }
Chris@102 32
Chris@102 33 template <class Tag>
Chris@102 34 inline
Chris@102 35 typename Tag::type const *
Chris@102 36 exception::
Chris@102 37 get() const
Chris@102 38 {
Chris@102 39 return get_error_info<error_info<Tag,typename Tag::type> >(*this);
Chris@102 40 }
Chris@102 41 }
Chris@102 42
Chris@102 43 #if defined(_MSC_VER) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS)
Chris@102 44 #pragma warning(pop)
Chris@102 45 #endif
Chris@102 46 #endif