| 1 | // |
|---|---|
| 2 | // Copyright (c) Chris Glover, 2016. |
| 3 | // |
| 4 | // |
| 5 | // Distributed under the Boost Software License, Version 1.0. (See accompanying |
| 6 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 7 | // |
| 8 | |
| 9 | #ifndef BOOST_TYPE_INDEX_RUNTIME_CAST_HPP |
| 10 | #define BOOST_TYPE_INDEX_RUNTIME_CAST_HPP |
| 11 | |
| 12 | /// \file runtime_cast.hpp |
| 13 | /// \brief Contains the basic utilities necessary to fully emulate |
| 14 | /// dynamic_cast for language level constructs (raw pointers and references). |
| 15 | /// |
| 16 | /// boost::typeindex::runtime_cast is a drop in replacement for dynamic_cast |
| 17 | /// that can be used in situations where traditional rtti is either unavailable |
| 18 | /// or undesirable. |
| 19 | |
| 20 | #include <boost/type_index/runtime_cast/register_runtime_class.hpp> |
| 21 | #include <boost/type_index/runtime_cast/pointer_cast.hpp> |
| 22 | #include <boost/type_index/runtime_cast/reference_cast.hpp> |
| 23 | |
| 24 | #ifdef BOOST_HAS_PRAGMA_ONCE |
| 25 | # pragma once |
| 26 | #endif |
| 27 | |
| 28 | #endif // BOOST_TYPE_INDEX_RUNTIME_CAST_HPP |
| 29 |
