Skip to content

Commit bb1b8fe

Browse files
jnthntatumcopybara-github
authored andcommitted
Fix gcc warning about shadowing base class virtual overload.
Adapted from #1048. PiperOrigin-RevId: 693382358
1 parent 74ba25a commit bb1b8fe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

eval/public/containers/internal_field_backed_map_impl.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ class FieldBackedMapImpl : public CelMap {
4545

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

48+
// Include base class definitions to avoid GCC warnings about hidden virtual
49+
// overloads.
50+
using CelMap::ListKeys;
51+
4852
protected:
4953
// These methods are exposed as protected methods for testing purposes since
5054
// whether one or the other is used depends on build time flags, but each

0 commit comments

Comments
 (0)