summaryrefslogtreecommitdiff
path: root/gruel/src/lib/pmt/pmt_int.h
diff options
context:
space:
mode:
authorTom Rondeau2012-04-04 22:08:10 -0400
committerTom Rondeau2012-04-04 22:08:10 -0400
commita66a650a1f39118500434bc9c91b2ade24887149 (patch)
treeb90b341e42a776432053a54740ca7ce9e7e945e6 /gruel/src/lib/pmt/pmt_int.h
parentfd52df0f706195d937e287189024f8aa6fbeaf60 (diff)
parentb711a8683c8c4578c7a4ff0f3664f1321da1dcad (diff)
downloadgnuradio-a66a650a1f39118500434bc9c91b2ade24887149.tar.gz
gnuradio-a66a650a1f39118500434bc9c91b2ade24887149.tar.bz2
gnuradio-a66a650a1f39118500434bc9c91b2ade24887149.zip
Merge branch 'master' of gnuradio.org:gnuradio
Diffstat (limited to 'gruel/src/lib/pmt/pmt_int.h')
-rw-r--r--gruel/src/lib/pmt/pmt_int.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/gruel/src/lib/pmt/pmt_int.h b/gruel/src/lib/pmt/pmt_int.h
index 3a5cd382b..745dbc666 100644
--- a/gruel/src/lib/pmt/pmt_int.h
+++ b/gruel/src/lib/pmt/pmt_int.h
@@ -38,8 +38,15 @@ namespace pmt {
class GRUEL_API pmt_base : boost::noncopyable {
mutable boost::detail::atomic_count count_;
+public:
+ static void default_deleter(pmt_base *p){
+ delete p;
+ }
+
+ boost::function<void(pmt_base *)> deleter_;
+
protected:
- pmt_base() : count_(0) {};
+ pmt_base() : count_(0), deleter_(&pmt::pmt_base::default_deleter) {};
virtual ~pmt_base();
public: