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) {}
44 if (H* h = boost::get_deleter<H, T>(p))
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);
void convert_shared_ptr(const boost::shared_ptr< T > &from, boost::shared_ptr< U > &to)
boost::shared_ptr< T > to_boost_shared_ptr(const std::shared_ptr< T > &p)
std::shared_ptr< T > to_std_shared_ptr(const boost::shared_ptr< T > &p)