diff options
Diffstat (limited to 'gnuradio-runtime/lib/pmt/unv_template.cc.t')
-rw-r--r-- | gnuradio-runtime/lib/pmt/unv_template.cc.t | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gnuradio-runtime/lib/pmt/unv_template.cc.t b/gnuradio-runtime/lib/pmt/unv_template.cc.t index 0342367f7e..c8020e7de2 100644 --- a/gnuradio-runtime/lib/pmt/unv_template.cc.t +++ b/gnuradio-runtime/lib/pmt/unv_template.cc.t @@ -90,7 +90,7 @@ init_@TAG@vector(size_t k, const @TYPE@ *data) pmt_t init_@TAG@vector(size_t k, const std::vector< @TYPE@ > &data) { - + return pmt_t(new pmt_@TAG@vector(k, &data[0])); } @@ -138,4 +138,10 @@ const std::vector< @TYPE@ > return _@TAG@vector(vector)->writable_elements(len); } +const std::string +pmt_@TAG@vector::string_ref(size_t k) const +{ + return boost::lexical_cast< std::string, @TYPE@ > (ref(k)); +} + } /* namespace pmt */ |