From b39ad038cddf2f01b97de1741415b2875c45c18d Mon Sep 17 00:00:00 2001 From: Alexander Krimm Date: Thu, 5 Dec 2024 12:59:22 +0100 Subject: [PATCH] Block: disambiguate registerBlock function Because the variadic template could also match for zero type parameters, this created an ambiguous template definition with the function above. Signed-off-by: Alexander Krimm --- core/include/gnuradio-4.0/Block.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/include/gnuradio-4.0/Block.hpp b/core/include/gnuradio-4.0/Block.hpp index 04e8a134..9bb03d7c 100644 --- a/core/include/gnuradio-4.0/Block.hpp +++ b/core/include/gnuradio-4.0/Block.hpp @@ -2081,10 +2081,10 @@ inline int registerBlock(auto& registerInstance) { return 0; } -template +template inline int registerBlock(auto& registerInstance) { registerBlock(registerInstance); - return registerBlock(registerInstance); + return registerBlock(registerInstance); } /**