Skip to content

Commit 1808c0f

Browse files
GordonSmithCopilot
andauthored
Update include/cmcpp/context.hpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 283f22d commit 1808c0f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/cmcpp/context.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,9 @@ namespace cmcpp
181181
}
182182

183183
private:
184-
std::vector<std::optional<HandleElement>> entries_{std::nullopt};
184+
std::vector<std::optional<HandleElement>> entries_{};
185185
std::vector<uint32_t> free_;
186+
HandleTable() { entries_.push_back(std::nullopt); }
186187
};
187188

188189
class HandleTables

0 commit comments

Comments
 (0)