|
||||
File indexing completed on 2025-01-30 10:02:09
0001 //----------------------------------------------------------------------------- 0002 // boost variant/bad_visit.hpp header file 0003 // See http://www.boost.org for updates, documentation, and revision history. 0004 //----------------------------------------------------------------------------- 0005 // 0006 // Copyright (c) 2002-2003 0007 // Eric Friedman 0008 // 0009 // Distributed under the Boost Software License, Version 1.0. (See 0010 // accompanying file LICENSE_1_0.txt or copy at 0011 // http://www.boost.org/LICENSE_1_0.txt) 0012 0013 #ifndef BOOST_VARIANT_BAD_VISIT_HPP 0014 #define BOOST_VARIANT_BAD_VISIT_HPP 0015 0016 #include <boost/config.hpp> 0017 0018 #include <exception> 0019 0020 namespace boost { 0021 0022 ////////////////////////////////////////////////////////////////////////// 0023 // class bad_visit 0024 // 0025 // Exception thrown when a visitation attempt via apply_visitor fails due 0026 // to invalid visited subtype or contents. 0027 // 0028 struct BOOST_SYMBOL_VISIBLE bad_visit 0029 : std::exception 0030 { 0031 public: // std::exception interface 0032 0033 const char * what() const BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE 0034 { 0035 return "boost::bad_visit: " 0036 "failed visitation using boost::apply_visitor"; 0037 } 0038 0039 }; 0040 0041 } // namespace boost 0042 0043 #endif // BOOST_VARIANT_BAD_VISIT_HPP
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |