1 // Boost.TypeErasure library
3 // Copyright 2011-2012 Steven Watanabe
5 // Distributed under the Boost Software License Version 1.0. (See
6 // accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
11 #ifndef BOOST_TYPE_ERASURE_EXCEPTION_HPP_INCLUDED
12 #define BOOST_TYPE_ERASURE_EXCEPTION_HPP_INCLUDED
19 namespace type_erasure {
22 * Exception thrown when the arguments to a primitive concept
25 * \see \call, \require_match
27 class bad_function_call : public ::std::invalid_argument
30 bad_function_call() : ::std::invalid_argument("bad_function_call") {}
34 * Exception thrown when an \any_cast to a reference or value fails.
36 class bad_any_cast : public std::bad_cast {};