From 86a757769d8b31ad9495b384988914c04d98e29a Mon Sep 17 00:00:00 2001
From: Olivier BICHLER <olivier.bichler@cea.fr>
Date: Thu, 6 Feb 2025 12:36:17 +0100
Subject: [PATCH] Added doc comment

---
 src/operator/MetaOperator.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/operator/MetaOperator.cpp b/src/operator/MetaOperator.cpp
index 9a8a943fc..96c5b219a 100644
--- a/src/operator/MetaOperator.cpp
+++ b/src/operator/MetaOperator.cpp
@@ -73,6 +73,9 @@ Aidge::MetaOperator_Op::MetaOperator_Op(const MetaOperator_Op& op)
 std::shared_ptr<Aidge::Operator> Aidge::MetaOperator_Op::clone() const {
     auto metaOp = std::make_shared<MetaOperator_Op>(*this);
     if (mImpl) {
+        // Only setBackend() is mImpl is not nullptr.
+        // The inner-graph backend is already set in MetaOperator_Op copy
+        // construtor, when the graph is cloned.
         metaOp->setBackend(mImpl->backend());
     }
     return metaOp;
-- 
GitLab