1 //-----------------------------------------------------------------------------
2 // boost variant/bad_visit.hpp header file
3 // See http://www.boost.org for updates, documentation, and revision history.
4 //-----------------------------------------------------------------------------
6 // Copyright (c) 2002-2003
9 // Distributed under the Boost Software License, Version 1.0. (See
10 // accompanying file LICENSE_1_0.txt or copy at
11 // http://www.boost.org/LICENSE_1_0.txt)
13 #ifndef BOOST_VARIANT_BAD_VISIT_HPP
14 #define BOOST_VARIANT_BAD_VISIT_HPP
20 //////////////////////////////////////////////////////////////////////////
23 // Exception thrown when a visitation attempt via apply_visitor fails due
24 // to invalid visited subtype or contents.
29 public: // std::exception interface
31 virtual const char * what() const throw()
33 return "boost::bad_visit: "
34 "failed visitation using boost::apply_visitor";
41 #endif // BOOST_VARIANT_BAD_VISIT_HPP