21 #ifndef INCLUDE_FKIE_MESSAGE_FILTERS_HELPERS_SHARED_PTR_COMPAT_H_
22 #define INCLUDE_FKIE_MESSAGE_FILTERS_HELPERS_SHARED_PTR_COMPAT_H_
25 #include <boost/shared_ptr.hpp>
36 explicit Holder (
const SP& p) :
sp(p) {}
43 using H = Holder<std::shared_ptr<T>>;
44 if (H* h = boost::get_deleter<H, T>(p))
63 using H = Holder<boost::shared_ptr<T>>;
64 if (H* h = std::get_deleter<H, T>(p))
80 template<
class T,
class U>
86 template<
class T,
class U>
92 template<
class T,
class U>
98 template<
class T,
class U>
104 template<
class SP,
class T>
108 convert_shared_ptr<T, typename SP::element_type>(p, sp);
112 template<
class SP,
class T>
116 convert_shared_ptr<T, typename SP::element_type>(p, sp);