Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing unnecessary inline qualify to pure virtual function #545

Merged
merged 1 commit into from
Oct 22, 2023
Merged

Conversation

lemire
Copy link
Member

@lemire lemire commented Oct 22, 2023

As per the C++ specification, there is nothing preventing us from declaring a pure virtual function 'inline'. Nevertheless, some compilers, by static analysis, flags this with a warning. Furthermore, some people turn warnings into errors. And so you go from code that is legal, down to an error.

Note that there probably is no sense in this library to have the virtual function inline, so I am not defending the code as it appeared. It just seems that it was harmless as is.

Fixes #544

@anonrig anonrig merged commit 22f5226 into main Oct 22, 2023
34 checks passed
@anonrig anonrig deleted the issue544 branch October 22, 2023 23:46
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.

Build fails on Node.js
2 participants