diff --git a/src/indexer.h b/src/indexer.h index 93f4e5ec..04315002 100644 --- a/src/indexer.h +++ b/src/indexer.h @@ -35,6 +35,8 @@ template struct Id { size_t id; + static constexpr size_t INVALID_ID = static_cast(-1); + Id() : id(0) {} // Needed for containers. Do not use directly. explicit Id(size_t id) : id(id) {}