boost/boost/interprocess/smart_ptr/detail/sp_counted_impl.hpp: In constructor 'boost::interprocess::detail::sp_counted_impl_pd::sp_counted_impl_pd(const Ptr&, const A&, const D&) [with Ptr = boost::interprocess::offset_ptr, A = boost::interprocess::allocator >, boost::interprocess::iset_index> >, D = SegmentDeleter]': boost/boost/interprocess/smart_ptr/detail/shared_count.hpp:90: instantiated from 'boost::interprocess::detail::shared_count::shared_count(const Ptr&, const A&, D) [with Ptr = boost::interprocess::offset_ptr, T = Class, A = boost::interprocess::allocator >, boost::interprocess::iset_index> >, D = SegmentDeleter]' boost/boost/interprocess/smart_ptr/shared_ptr.hpp:105: instantiated from 'boost::interprocess::shared_ptr::shared_ptr(const typename boost::interprocess::detail::pointer_to_other::type&, const VA&, const D&) [with T = Class, VA = boost::interprocess::allocator >, boost::interprocess::iset_index> >, D = SegmentDeleter]' boost/boost/preprocessor/iteration/detail/local.hpp:43: instantiated from 'void boost::interprocess::detail::Ctor3Arg::construct(void*, boost::interprocess::detail::false_) [with T = boost::interprocess::shared_ptr >, boost::interprocess::iset_index> >, SegmentDeleter >, bool is_iterator = false, P0 = Class*, P1 = boost::interprocess::allocator >, boost::interprocess::iset_index> >, P2 = SegmentDeleter]' boost/boost/preprocessor/iteration/detail/local.hpp:43: instantiated from 'void boost::interprocess::detail::Ctor3Arg::construct_n(void*, size_t, size_t&) [with T = boost::interprocess::shared_ptr >, boost::interprocess::iset_index> >, SegmentDeleter >, bool is_iterator = false, P0 = Class*, P1 = boost::interprocess::allocator >, boost::interprocess::iset_index> >, P2 = SegmentDeleter]' boost_interprocess_issue.cpp:43: instantiated from here boost/boost/interprocess/smart_ptr/detail/sp_counted_impl.hpp:66: error: cannot convert 'const boost::interprocess::offset_ptr' to 'Class*' in initialization