diff --git a/kernel/newcelltypes.h b/kernel/newcelltypes.h index e26de0569..c4a4ea329 100644 --- a/kernel/newcelltypes.h +++ b/kernel/newcelltypes.h @@ -548,8 +548,13 @@ struct NewCellType { }; struct NewCellTypes { + struct IdStringHash { + std::size_t operator()(const IdString id) const { + return static_cast(id.hash_top().yield()); + } + }; StaticCellTypes::Categories::Category static_cell_types = StaticCellTypes::categories.empty; - dict custom_cell_types = {}; + std::unordered_map custom_cell_types {}; NewCellTypes() { static_cell_types = StaticCellTypes::categories.empty;