diff --git a/common/ctree.h b/common/ctree.h index 50c737c7..c12259af 100644 --- a/common/ctree.h +++ b/common/ctree.h @@ -183,7 +183,8 @@ struct ctree { if constexpr (sizeof...(next_counters_T) != 0) { - next.emplace(key, new node_t{*static_cast(value)}); + using child_t = node_t; + next.emplace(key, new child_t{*static_cast(value)}); } else { @@ -363,8 +364,8 @@ struct ctree { if constexpr (sizeof...(next_counters_T) != 0) { - using actual = node_t; - next.emplace(key, new actual(*static_cast(node))); + using child_t = node_t; + next.emplace(key, new child_t(*static_cast(node))); } else {