diff --git a/include/aidge/operator/GenericOperator.hpp b/include/aidge/operator/GenericOperator.hpp index c966b5f5c1bb4914f3e46f96493da87a6707b1ff..624af6e755d882ca9585ac2e4175f9c3977e4058 100644 --- a/include/aidge/operator/GenericOperator.hpp +++ b/include/aidge/operator/GenericOperator.hpp @@ -59,7 +59,7 @@ public: // Helper functions that can be used with setComputeOutputDims(): static const ComputeDimsFunc Identity; - void setComputeOutputDims(ComputeDimsFunc func) { + inline void setComputeOutputDims(ComputeDimsFunc func) { mComputeOutputDims = func; } diff --git a/include/aidge/operator/Operator.hpp b/include/aidge/operator/Operator.hpp index cebc2d54041bb38c6e7f3434f12b559cec3d80af..808450030bdfc176c9cbc435c76b4932586397b8 100644 --- a/include/aidge/operator/Operator.hpp +++ b/include/aidge/operator/Operator.hpp @@ -118,9 +118,7 @@ public: * @brief Set the a new OperatorImpl to the Operator * */ - void setImpl(std::shared_ptr<OperatorImpl> impl){ - mImpl = impl; - } + inline void setImpl(std::shared_ptr<OperatorImpl> impl) { mImpl = impl; } /** * @brief Minimum amount of data from a specific input for one computation pass.