Skip to content

Commit

Permalink
Append tree leaf nodes (dependencies) before trunk (#82)
Browse files Browse the repository at this point in the history
* Append tree leaf nodes (dependencies) before trunk

Signed-off-by: Juan Lopez Fernandez <[email protected]>

* Piggyback: add missing include

Signed-off-by: Juan Lopez Fernandez <[email protected]>

---------

Signed-off-by: Juan Lopez Fernandez <[email protected]>
  • Loading branch information
juanlofer-eprosima authored Oct 10, 2023
1 parent 900874d commit 72d503f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cpp_utils/include/cpp_utils/memory/Heritable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

#pragma once

#include <memory>

#include <cpp_utils/library/library_dll.h>

namespace eprosima {
Expand Down
2 changes: 1 addition & 1 deletion cpp_utils/include/cpp_utils/types/impl/Tree.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ std::list<TreeNode<Info>> TreeNode<Info>::all_nodes() const noexcept
for (const auto& b : branches_)
{
auto b_branches = b.all_nodes();
result.splice(result.end(), b_branches);
result.splice(result.begin(), b_branches);
}
return result;
}
Expand Down

0 comments on commit 72d503f

Please sign in to comment.