From 6961a794356d413f81bfbf347ed84619b1125d22 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 31 Jul 2013 00:20:23 -0700 Subject: gras: transplant get_initial_sptr for teh compilz --- gnuradio-core/src/lib/runtime/gr_block.h | 11 +---------- gnuradio-core/src/lib/runtime/gr_sptr_magic.h | 2 +- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/gnuradio-core/src/lib/runtime/gr_block.h b/gnuradio-core/src/lib/runtime/gr_block.h index 08914f24a..bd085100b 100644 --- a/gnuradio-core/src/lib/runtime/gr_block.h +++ b/gnuradio-core/src/lib/runtime/gr_block.h @@ -32,16 +32,7 @@ #include #include #include - -namespace gnuradio -{ -//! dummy entry, just here for legacy purposes -template -boost::shared_ptr get_initial_sptr(T *p) -{ - return boost::shared_ptr(p); -} -} +#include struct GR_CORE_API gr_block : gras::Block { diff --git a/gnuradio-core/src/lib/runtime/gr_sptr_magic.h b/gnuradio-core/src/lib/runtime/gr_sptr_magic.h index 3d997539c..d9c7f26c4 100644 --- a/gnuradio-core/src/lib/runtime/gr_sptr_magic.h +++ b/gnuradio-core/src/lib/runtime/gr_sptr_magic.h @@ -45,7 +45,7 @@ namespace gnuradio { boost::shared_ptr get_initial_sptr(T *p) { - return boost::dynamic_pointer_cast(detail::sptr_magic::fetch_initial_sptr(p)); + return boost::shared_ptr(p);//return boost::dynamic_pointer_cast(detail::sptr_magic::fetch_initial_sptr(p)); } }; -- cgit