From a5121a8f71d576b92b673af4d475b3fa3b1a732a Mon Sep 17 00:00:00 2001 From: Alex Harker Date: Tue, 18 Dec 2018 12:29:18 +0000 Subject: [PATCH] Template only on the client (untested/uncompiled) --- include/FluidSCWrapper.hpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/include/FluidSCWrapper.hpp b/include/FluidSCWrapper.hpp index 5dc96d9..cf5cc42 100644 --- a/include/FluidSCWrapper.hpp +++ b/include/FluidSCWrapper.hpp @@ -17,7 +17,7 @@ template struct SetterDispatchImpl; template struct GetterDispatchImpl; } // namespace impl -template +template class FluidSCWrapper : public SCUnit { public: FluidSCWrapper() { @@ -65,7 +65,7 @@ public: } void setParams(float **inputs) { - setParams(inputs, std::index_sequence_for()); + setParams(inputs, ParamIndexList()); } private: @@ -120,11 +120,10 @@ struct SetterDispatchImpl { } // namespace impl -template -void makeSCWrapper(InterfaceTable *ft, const char *className, - const std::tuple ¶ms) { - registerUnit>(ft, - className); +template +void makeSCWrapper(InterfaceTable *ft, const char *className, Client::ParamType ¶ms) +{ + registerUnit(ft, className); } } // namespace client