better fields access

This commit is contained in:
2025-02-15 12:39:53 +01:00
parent 0b28bde25b
commit e39f8de898
6 changed files with 55 additions and 20 deletions

View File

@@ -114,6 +114,11 @@ class MessageImplFieldsBase : public TBase {
return std::get<FIndex>(GetFields()).GetValue();
}
template <std::size_t FIndex>
const auto& GetField() const {
return std::get<FIndex>(GetFields()).GetValue();
}
private:
AllFields m_Fields;
};