22 #ifndef INCLUDED_GR_RUNTIME_SPTR_MAGIC_H
23 #define INCLUDED_GR_RUNTIME_SPTR_MAGIC_H
26 #include <boost/shared_ptr.hpp>
39 static boost::shared_ptr<gr::basic_block> fetch_initial_sptr(
gr::basic_block* p);
50 boost::shared_ptr<T> get_initial_sptr(T* p)
52 return boost::dynamic_pointer_cast<T, gr::basic_block>(
53 detail::sptr_magic::fetch_initial_sptr(p));