Skip to content

fix(Data): Add using AbstractBinder::bind to prevent hidden virtual warning (#4900)#5118

Merged
matejk merged 1 commit intomainfrom
4900-binder-hidden-virtual
Dec 18, 2025
Merged

fix(Data): Add using AbstractBinder::bind to prevent hidden virtual warning (#4900)#5118
matejk merged 1 commit intomainfrom
4900-binder-hidden-virtual

Conversation

@matejk
Copy link
Copy Markdown
Contributor

@matejk matejk commented Dec 17, 2025

Summary

Fixes #4900 - Adds using AbstractBinder::bind; to all Binder classes to prevent -Woverloaded-virtual compiler warnings.

Problem

When a derived class overrides some overloads of a virtual function without bringing all base class overloads into scope, the compiler warns about "hidden" virtual functions:

warning: 'virtual void Poco::Data::AbstractBinder::bind(...)' was hidden [-Woverloaded-virtual=]

Solution

Add using AbstractBinder::bind; to bring all base class bind() overloads into scope in each derived Binder class:

  • Data/ODBC/include/Poco/Data/ODBC/Binder.h
  • Data/MySQL/include/Poco/Data/MySQL/Binder.h
  • Data/PostgreSQL/include/Poco/Data/PostgreSQL/Binder.h
  • Data/SQLite/include/Poco/Data/SQLite/Binder.h

@matejk matejk merged commit 7a03caf into main Dec 18, 2025
82 of 86 checks passed
@matejk matejk deleted the 4900-binder-hidden-virtual branch December 18, 2025 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Data/ODBC: Binder hides AbstractBinder::bind()

1 participant