From ececbe0a99f519cc8f2ba60b898b1e679a8f4a9a Mon Sep 17 00:00:00 2001 From: Alastair Robertson Date: Mon, 31 Jul 2023 12:03:55 -0700 Subject: [PATCH] TopoSorter: Sort contained types after unique_ptr and shared_ptr This is the same handling as regular pointers have. I came across a type-cycle with unique_ptrs where this was necessary. --- oi/type_graph/TopoSorter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oi/type_graph/TopoSorter.cpp b/oi/type_graph/TopoSorter.cpp index 57f9121..4ad9605 100644 --- a/oi/type_graph/TopoSorter.cpp +++ b/oi/type_graph/TopoSorter.cpp @@ -85,6 +85,8 @@ bool containerAllowsIncompleteParams(const Container& c) { switch (c.containerInfo_.ctype) { case SEQ_TYPE: case LIST_TYPE: + case UNIQ_PTR_TYPE: + case SHRD_PTR_TYPE: // Also std::forward_list, if we ever support that // Would be good to have this as an option in the TOML files return true;