refactor(furvm): use generational indexes for thing

Refs: #10
This commit is contained in:
2026-06-10 15:42:09 +02:00
parent d86f38d166
commit 26d77bdc02
3 changed files with 23 additions and 10 deletions
+3 -1
View File
@@ -50,7 +50,7 @@ public:
const char* what() const noexcept override { return "bad thing access"; }
};
class thing {
class thing final {
friend class executor;
private:
/**
@@ -61,6 +61,8 @@ private:
struct rzecz {
explicit rzecz() = default;
};
public:
static constexpr thing_handle GENERATION_SIZE = 12; /**< Bit size of generation part in thing_handle. */
public:
/**
* @brief Private constructor.