The features I'd like to use from the library are the macros SWIG_SHARED_PTR and SWIG_SHARED_PTR_DERIVED.
I'm using swig-1.3.40 (standard for ubuntu 10.04). The macros were added in swig-1.3.34 (Feb 2008). In the current version (swig-2.02) they still work but are deprecated and replaced by %shared_ptr. On Sun, Mar 20, 2011 at 5:45 PM, Tom Rondeau <trondeau1...@gmail.com> wrote: > That's a good question, Ben. I need to talk with Eric about this some more. > I'm also having issues with intrusive_ptr. One issue is that the latter is > very new in swig and not well supported. I will need to see what version the > shared-ptr is introduced, too. > > Tom > > Sent from my iPhone > > On Mar 20, 2011, at 5:15 PM, Ben Reynwar <b...@reynwar.net> wrote: > >> Hi all, >> >> I've been trying every now again to create classes in gnuradio that >> are not signal processing blocks but are wrapped up in the same way >> used boost::shared_ptr and SWIG. I haven't been able to replicate how >> it's done for the signal processing blocks. >> >> I have been able to get the same thing working outside of gnuradio >> using the boost_shared_ptr.i SWIG library. Unfortunately I can't use >> that within gnuradio because the namespace clashes with >> gr_shared_ptr.i. My guess is that things are done the way they are in >> gnuradio because when they were written the boost_shared_ptr.i library >> wasn't available. Does anyone know of any reasons not to use >> boost_shared_ptr.i instead of gr_shared_ptr.i within gnuradio? I >> think it should make things simpler. >> >> Cheers, >> Ben >> >> _______________________________________________ >> Discuss-gnuradio mailing list >> Discuss-gnuradio@gnu.org >> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio > _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio