From 89b18c453b90857e8099946bc8e04744661ded11 Mon Sep 17 00:00:00 2001 From: cmoineau <cyril.moineau@cea.fr> Date: Fri, 1 Mar 2024 12:43:51 +0000 Subject: [PATCH] Fix compilation issue with Move keyword. --- include/aidge/operator/Move.hpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/include/aidge/operator/Move.hpp b/include/aidge/operator/Move.hpp index 2db7d49af..3652cf969 100644 --- a/include/aidge/operator/Move.hpp +++ b/include/aidge/operator/Move.hpp @@ -39,11 +39,7 @@ public: Move_Op(const Move_Op& op) : OperatorTensor(op) { - if (op.mImpl){ - SET_IMPL_MACRO(Move_Op, *this, op.mOutputs[0]->getImpl()->backend()); - }else{ - mImpl = nullptr; - } + mImpl = op.mImpl ? Registrar<Move_Op>::create({mInputs[0]->getImpl()->backend(), mOutputs[0]->getImpl()->backend()})(*this) : nullptr; } /** -- GitLab