Skip to content
Snippets Groups Projects
Commit 9a6798c4 authored by Maxence Naud's avatar Maxence Naud
Browse files

solve an inlining fail by removing inline

parent 6e4671ef
No related branches found
No related tags found
1 merge request!356Fix remove compile warnings
Pipeline #66435 passed
......@@ -213,10 +213,7 @@ public:
* @param inID
* @return std::pair<std::shared_ptr<Node>, IOIndex_t>
*/
inline std::pair<NodePtr, IOIndex_t> input(const IOIndex_t inID) const {
AIDGE_ASSERT((inID != gk_IODefaultIndex) && (inID < nbInputs()), "Input index out of bound.");
return std::pair<NodePtr, IOIndex_t>(mParents[inID], mIdOutParents[inID]);
}
std::pair<std::shared_ptr<Node>, IOIndex_t> input(const IOIndex_t inID) const;
/**
......@@ -328,7 +325,7 @@ public:
* Default to 0.
* @param otherInId ID of the other Node input to connect to the current Node.
* Default to the first available data input.
*
*
* @note otherNode shared_ptr is passed by refenrece in order to be able to detect
* possible dangling connection situations in debug using ref counting.
*/
......@@ -509,7 +506,7 @@ private:
* @param otherNode
* @param outId
* @param otherInId
*
*
* @note otherNode shared_ptr is passed by refenrece in order to be able to detect
* possible dangling connection situations in debug using ref counting.
*/
......
......@@ -11,11 +11,10 @@
#ifndef AIDGE_DIRECTORIES_H_
#define AIDGE_DIRECTORIES_H_
#include <algorithm>
#include <algorithm> // std::replace_if
#include <errno.h>
#include <string>
// #include <string_view> available in c++-17
#include <vector>
#include <fmt/core.h>
#include <fmt/format.h>
......
......@@ -173,6 +173,12 @@ std::vector<std::pair<std::shared_ptr<Aidge::Node>, Aidge::IOIndex_t>> Aidge::No
return res;
}
std::pair<std::shared_ptr<Aidge::Node>, Aidge::IOIndex_t> Aidge::Node::input(const Aidge::IOIndex_t inID) const {
// nbInputs already < gk_IODefaultIndex
AIDGE_ASSERT((inID < nbInputs()), "Input index out of bound.");
return std::pair<NodePtr, IOIndex_t>(mParents[inID], mIdOutParents[inID]);
}
// void Aidge::Node::setInput(const Aidge::IOIndex_t idx, const std::shared_ptr<Aidge::Tensor>
// tensor) {
// assert(((idx != gk_IODefaultIndex) && (idx < nbInputs())) && "Parent index out of bound.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment