-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Classes derived from detail::buffer<T> declare non-virtual destructors #1936
Comments
See this comment: #1934 (comment) |
Thanks for the answer. While I understand that a decision has been made it makes using fmt in codebases who have that warning on (an warnings as errors) very difficult. |
And here is the PR #1937 |
To me, this change is a mistake. There's nothing wrong with not having a virtual destructor here and I think it's incorrect that the compiler warns about it like this. Meanwhile not being able to subclass these is a real loss in functionality IMO. Anyway, my $0.02. Cheers! |
it's https://gcc.gnu.org/bugzilla/show_bug.cgi?id=7302 fixed in 2011 affects fmtlib: fmtlib/fmt#1936
Compiling with gcc (GCC) 10.2.1 and
-Werror=non-virtual-dtor
:The text was updated successfully, but these errors were encountered: