diff options
-rw-r--r-- | slicer/tool/parser.cpp | 4 |
1 files 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 { |