diff --git a/src/libs/cplusplus/LookupContext.cpp b/src/libs/cplusplus/LookupContext.cpp index 7dd409a5cc8..41d6d8618a3 100644 --- a/src/libs/cplusplus/LookupContext.cpp +++ b/src/libs/cplusplus/LookupContext.cpp @@ -626,6 +626,9 @@ private: bool found() const { return _found; } private: + using TypeVisitor::visit; + using NameVisitor::visit; + void visit(PointerType *type) override { accept(type->elementType().type()); } void visit(ReferenceType *type) override { accept(type->elementType().type()); } void visit(NamedType *type) override { accept(type->name()); }