Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 10:10:13

0001 // Boost.TypeErasure library
0002 //
0003 // Copyright 2011-2012 Steven Watanabe
0004 //
0005 // Distributed under the Boost Software License Version 1.0. (See
0006 // accompanying file LICENSE_1_0.txt or copy at
0007 // http://www.boost.org/LICENSE_1_0.txt)
0008 //
0009 // $Id$
0010 
0011 #ifndef BOOST_TYPE_ERASURE_EXCEPTION_HPP_INCLUDED
0012 #define BOOST_TYPE_ERASURE_EXCEPTION_HPP_INCLUDED
0013 
0014 #include <boost/config.hpp>
0015 #include <stdexcept>
0016 #include <typeinfo>
0017 #include <string>
0018 
0019 namespace boost {
0020 namespace type_erasure {
0021 
0022 /**
0023  * Exception thrown when the arguments to a primitive concept
0024  * are incorrect.
0025  *
0026  * \see \call, \require_match
0027  */
0028 class BOOST_SYMBOL_VISIBLE bad_function_call : public ::std::invalid_argument
0029 {
0030 public:
0031     bad_function_call() : ::std::invalid_argument("bad_function_call") {}
0032 };
0033 
0034 /**
0035  * Exception thrown when an \any_cast to a reference or value fails.
0036  */
0037 class BOOST_SYMBOL_VISIBLE bad_any_cast : public std::bad_cast {};
0038 
0039 }
0040 }
0041 
0042 #endif