Codechange: strongly type LinkGraphID and LinkGraphJobID

This commit is contained in:
Rubidium
2025-01-31 21:43:40 +01:00
committed by rubidium42
parent 6c8915fdbc
commit c311e6e4a9
3 changed files with 8 additions and 6 deletions

View File

@@ -24,7 +24,7 @@ class LinkGraph;
* Type of the pool for link graph components. Each station can be in at up to
* 32 link graphs. So we allow for plenty of them to be created.
*/
typedef Pool<LinkGraph, LinkGraphID, 32, 0xFFFF> LinkGraphPool;
using LinkGraphPool = Pool<LinkGraph, LinkGraphID, 32, LinkGraphID::End().base()>;
/** The actual pool with link graphs. */
extern LinkGraphPool _link_graph_pool;