diff options
Diffstat (limited to 'boost/type_index/runtime_cast.hpp')
-rw-r--r-- | boost/type_index/runtime_cast.hpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/boost/type_index/runtime_cast.hpp b/boost/type_index/runtime_cast.hpp new file mode 100644 index 0000000000..c72b11916b --- /dev/null +++ b/boost/type_index/runtime_cast.hpp @@ -0,0 +1,28 @@ +// +// Copyright (c) Chris Glover, 2016. +// +// +// 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) +// + +#ifndef BOOST_TYPE_INDEX_RUNTIME_CAST_HPP +#define BOOST_TYPE_INDEX_RUNTIME_CAST_HPP + +/// \file runtime_cast.hpp +/// \brief Contains the basic utilities necessary to fully emulate +/// dynamic_cast for language level constructs (raw pointers and references). +/// +/// boost::typeindex::runtime_cast is a drop in replacement for dynamic_cast +/// that can be used in situations where traditional rtti is either unavailable +/// or undesirable. + +#include <boost/type_index/runtime_cast/register_runtime_class.hpp> +#include <boost/type_index/runtime_cast/pointer_cast.hpp> +#include <boost/type_index/runtime_cast/reference_cast.hpp> + +#ifdef BOOST_HAS_PRAGMA_ONCE +# pragma once +#endif + +#endif // BOOST_TYPE_INDEX_RUNTIME_CAST_HPP |