diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-11-18 12:47:02 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-11-18 12:47:02 +0000 |
commit | 7cd3b8c145e98b69d44430c4d3bf1e65b8abcda6 (patch) | |
tree | dc146fa19cc89b9ef309f0c409647887aef33956 | |
parent | Tidy fixes (diff) | |
download | slicer-7cd3b8c145e98b69d44430c4d3bf1e65b8abcda6.tar.bz2 slicer-7cd3b8c145e98b69d44430c4d3bf1e65b8abcda6.tar.xz slicer-7cd3b8c145e98b69d44430c4d3bf1e65b8abcda6.zip |
Add missing template specification to custom model part make
-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 { |