From c66b592b3a16ee512528ae1a68d417e9e49c82c5 Mon Sep 17 00:00:00 2001 From: samcake Date: Wed, 23 May 2018 17:04:00 -0700 Subject: [PATCH] MOVe the feedINput functions at the right spot --- libraries/task/src/task/Task.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/task/src/task/Task.h b/libraries/task/src/task/Task.h index cde9950df9..c06ec05121 100644 --- a/libraries/task/src/task/Task.h +++ b/libraries/task/src/task/Task.h @@ -141,9 +141,6 @@ public: const Varying getOutput() const override { return _output; } Varying& editInput() override { return _input; } - template void feedInput(const In& in) { _concept->editInput().template edit() = in; } - template void feedInput(int index, const S& inS) { (_concept->editInput().template editN(index)).template edit() = inS; } - template Model(const std::string& name, const Varying& input, QConfigPointer config, A&&... args) : Concept(name, config), @@ -185,6 +182,9 @@ public: QConfigPointer& getConfiguration() const { return _concept->getConfiguration(); } void applyConfiguration() { return _concept->applyConfiguration(); } + template void feedInput(const I& in) { _concept->editInput().template edit() = in; } + template void feedInput(int index, const S& inS) { (_concept->editInput().template editN(index)).template edit() = inS; } + template T& edit() { auto concept = std::static_pointer_cast(_concept); assert(concept);