From 7cd3b8c145e98b69d44430c4d3bf1e65b8abcda6 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 18 Nov 2020 12:47:02 +0000 Subject: Add missing template specification to custom model part make --- slicer/tool/parser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slicer/tool/parser.cpp b/slicer/tool/parser.cpp index 797944d..633b16f 100644 --- a/slicer/tool/parser.cpp +++ b/slicer/tool/parser.cpp @@ -679,8 +679,8 @@ namespace Slicer { if (auto cmp = metadata.value("slicer:custommodelpart:")) { fprintbf(cpp, "CUSTOMMODELPARTFOR(%s, %s< %s >, %s);\n\n", type, getBasicModelPart(stype), type, CppName {*cmp}); - fprintbf(cpp, "\ttemplate<> DLL_PUBLIC ModelPartPtr ModelPart::Make<%s>(%s * t)", getBasicModelPart(stype), - type); + fprintbf(cpp, "\ttemplate<> DLL_PUBLIC ModelPartPtr ModelPart::Make<%s<%s>>(%s * t)", + getBasicModelPart(stype), type, type); fprintbf(cpp, "{ return std::make_shared<%s>(t); } \n", CppName {*cmp}); } else { -- cgit v1.2.3