Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
1,870 additions
and
717 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Copyright Antony Polukhin, 2020-2021. | ||
// | ||
// Distributed under the Boost Software License, Version 1.0. (See | ||
// accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
// See http://www.boost.org/libs/any for Documentation. | ||
|
||
#ifndef BOOST_ANYS_UNIQUE_ANY_INCLUDED | ||
#define BOOST_ANYS_UNIQUE_ANY_INCLUDED | ||
|
||
#include <boost/config.hpp> | ||
#ifdef BOOST_HAS_PRAGMA_ONCE | ||
# pragma once | ||
#endif | ||
|
||
#include <boost/type_index.hpp> | ||
|
||
|
||
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 BOOST_OVERRIDE | ||
{ | ||
return "boost::bad_any_cast: " | ||
"failed conversion using boost::any_cast"; | ||
} | ||
}; | ||
|
||
} // namespace boost | ||
|
||
|
||
#endif // BOOST_ANYS_UNIQUE_ANY_INCLUDED |
Oops, something went wrong.