1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/stdapis/boost/variant/bad_visit.hpp Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,41 @@
1.4 +//-----------------------------------------------------------------------------
1.5 +// boost variant/bad_visit.hpp header file
1.6 +// See http://www.boost.org for updates, documentation, and revision history.
1.7 +//-----------------------------------------------------------------------------
1.8 +//
1.9 +// Copyright (c) 2002-2003
1.10 +// Eric Friedman
1.11 +//
1.12 +// Distributed under the Boost Software License, Version 1.0. (See
1.13 +// accompanying file LICENSE_1_0.txt or copy at
1.14 +// http://www.boost.org/LICENSE_1_0.txt)
1.15 +
1.16 +#ifndef BOOST_VARIANT_BAD_VISIT_HPP
1.17 +#define BOOST_VARIANT_BAD_VISIT_HPP
1.18 +
1.19 +#include <exception>
1.20 +
1.21 +namespace boost {
1.22 +
1.23 +//////////////////////////////////////////////////////////////////////////
1.24 +// class bad_visit
1.25 +//
1.26 +// Exception thrown when a visitation attempt via apply_visitor fails due
1.27 +// to invalid visited subtype or contents.
1.28 +//
1.29 +struct bad_visit
1.30 + : std::exception
1.31 +{
1.32 +public: // std::exception interface
1.33 +
1.34 + virtual const char * what() const throw()
1.35 + {
1.36 + return "boost::bad_visit: "
1.37 + "failed visitation using boost::apply_visitor";
1.38 + }
1.39 +
1.40 +};
1.41 +
1.42 +} // namespace boost
1.43 +
1.44 +#endif // BOOST_VARIANT_BAD_VISIT_HPP