From 321749796e268c70da8ec2e77f5736925abc7057 Mon Sep 17 00:00:00 2001 From: Nikita Kniazev Date: Tue, 26 May 2020 02:56:12 +0300 Subject: [PATCH] Cease dependence on SmartPtr by forward declaring `boost::shared_ptr` --- .../boost/type_index/runtime_cast/boost_shared_ptr_cast.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/boost/type_index/runtime_cast/boost_shared_ptr_cast.hpp b/include/boost/type_index/runtime_cast/boost_shared_ptr_cast.hpp index e31f19d..aaf7122 100644 --- a/include/boost/type_index/runtime_cast/boost_shared_ptr_cast.hpp +++ b/include/boost/type_index/runtime_cast/boost_shared_ptr_cast.hpp @@ -15,12 +15,15 @@ #include #include -#include #ifdef BOOST_HAS_PRAGMA_ONCE # pragma once #endif +namespace boost { + template class shared_ptr; +} + namespace boost { namespace typeindex { /// \brief Creates a new instance of std::shared_ptr whose stored pointer is obtained from u's