Skip to content

Commit

Permalink
Fix build failure
Browse files Browse the repository at this point in the history
Reviewed By: pranavtbhat

Differential Revision: D62596133

fbshipit-source-id: 9cc020db208fefada26b533477827052e4eb235f
  • Loading branch information
TJ Yin authored and facebook-github-bot committed Sep 12, 2024
1 parent 26a2168 commit 1d70597
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions third-party/thrift/src/thrift/lib/thrift/TypeToMaskAdapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,16 @@ class ValidatingTypeMap {
return map_[key];
}

mapped_type& at(const key_type& key) {
validateTypeIsFull(key);
return map_.at(key);
}

const mapped_type& at(const key_type& key) const {
validateTypeIsFull(key);
return map_.at(key);
}

size_t size() const { return map_.size(); }

bool operator==(const ValidatingTypeMap& rhs) const {
Expand Down

0 comments on commit 1d70597

Please sign in to comment.