diff options
author | Josh Blum | 2012-08-14 22:53:50 -0700 |
---|---|---|
committer | Josh Blum | 2012-08-26 16:03:50 -0700 |
commit | a1cd58f8caf3233f3b2c35616a06c9d8fe3fd1ee (patch) | |
tree | e167bcf521a5487e089cb6f7dc969955da6a547e /include/gnuradio/element.hpp | |
parent | 6fc8cc01801080b57ef549dc4eb470630e9ce780 (diff) | |
download | sandhi-a1cd58f8caf3233f3b2c35616a06c9d8fe3fd1ee.tar.gz sandhi-a1cd58f8caf3233f3b2c35616a06c9d8fe3fd1ee.tar.bz2 sandhi-a1cd58f8caf3233f3b2c35616a06c9d8fe3fd1ee.zip |
runtime: library compiling (missing syms, duh)
Diffstat (limited to 'include/gnuradio/element.hpp')
-rw-r--r-- | include/gnuradio/element.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/gnuradio/element.hpp b/include/gnuradio/element.hpp index 15acbd7..dc153fe 100644 --- a/include/gnuradio/element.hpp +++ b/include/gnuradio/element.hpp @@ -33,7 +33,10 @@ struct GR_RUNTIME_API Element : boost::shared_ptr<ElementImpl> * Create an element from a shared pointer to an element. * Good for that factory function/shared ptr paradigm. */ - Element(const boost::shared_ptr<Element> &elem); + template <typename T> + Element(const boost::shared_ptr<T> &elem): + boost::shared_ptr<ElementImpl>(*reinterpret_cast<const Element*>(elem.get())) + { } }; |