Skip to content

Commit

Permalink
Fix gcc warning about shadowing base class virtual overload.
Browse files Browse the repository at this point in the history
Adapted from #1048.

PiperOrigin-RevId: 694258444
  • Loading branch information
jnthntatum authored and copybara-github committed Nov 7, 2024
1 parent 74ba25a commit 2f43982
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eval/public/containers/internal_field_backed_map_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ class FieldBackedMapImpl : public CelMap {

absl::StatusOr<const CelList*> ListKeys() const override;

// Include base class definitions to avoid GCC warnings about hidden virtual
// overloads.
using CelMap::ListKeys;

protected:
// These methods are exposed as protected methods for testing purposes since
// whether one or the other is used depends on build time flags, but each
Expand Down

0 comments on commit 2f43982

Please sign in to comment.