summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/include/gnuradio/top_block.h
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-runtime/include/gnuradio/top_block.h')
-rw-r--r--gnuradio-runtime/include/gnuradio/top_block.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gnuradio-runtime/include/gnuradio/top_block.h b/gnuradio-runtime/include/gnuradio/top_block.h
index fd8ab66a94..12051e6f04 100644
--- a/gnuradio-runtime/include/gnuradio/top_block.h
+++ b/gnuradio-runtime/include/gnuradio/top_block.h
@@ -28,8 +28,9 @@ GR_RUNTIME_API top_block_sptr make_top_block(const std::string& name,
class GR_RUNTIME_API top_block : public hier_block2
{
private:
- friend GR_RUNTIME_API top_block_sptr make_top_block(const std::string& name,
- bool catch_exceptions);
+ template <typename T, typename... Args>
+ friend std::shared_ptr<T> gnuradio::make_block_sptr(Args&&... args);
+
std::unique_ptr<top_block_impl> d_impl;