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.
This commit is contained in:
Alastair Robertson 2023-07-31 12:03:55 -07:00 committed by Alastair Robertson
parent e9975286b2
commit ececbe0a99

View File

@ -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;