123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #ifndef BOOST_ANYS_BAD_ANY_CAST_HPP_INCLUDED
- #define BOOST_ANYS_BAD_ANY_CAST_HPP_INCLUDED
- #include <boost/config.hpp>
- #ifdef BOOST_HAS_PRAGMA_ONCE
- # pragma once
- #endif
- #ifndef BOOST_NO_RTTI
- #include <typeinfo>
- #endif
- #include <stdexcept>
- namespace boost {
- class BOOST_SYMBOL_VISIBLE bad_any_cast :
- #ifndef BOOST_NO_RTTI
- public std::bad_cast
- #else
- public std::exception
- #endif
- {
- public:
- const char * what() const BOOST_NOEXCEPT_OR_NOTHROW override
- {
- return "boost::bad_any_cast: "
- "failed conversion using boost::any_cast";
- }
- };
- }
- #endif
|