fix: guard access check funcs by macro

This commit is contained in:
ToruNiina
2025-01-30 00:35:36 +09:00
parent 46f009d25e
commit 942eadef5c
2 changed files with 6 additions and 0 deletions

View File

@@ -2042,7 +2042,9 @@ class basic_value
comment_type const& comments() const noexcept {return this->comments_;}
comment_type& comments() noexcept {return this->comments_;}
#ifdef TOML11_ENABLE_ACCESS_CHECK
bool accessed() const {return this->accessed_.load();}
#endif
private: