编译器告诉你问题出在Bar而不是Foo。如果你有另一个继承自Bar的类,比如Baz:标记
> object of polymorphic class type 'apache::thrift::server::TConnectedClient' > which has non-virtual destructor might cause undefined behavior > [-Wdelete-non-virtual-dtor] > 234 | delete pClient; > | ^~~~{code} > Not itself a major problem, but Zephyr CI promotes all warnings to e...
"-Wsystem-headers -Wnon-virtual-dtor" they will likely see issues in <locale>. The struct `time_get` is specified as having a non-virtual protected destructor but in the libc++ implementation `time_get` also has a non-virtual base class with virtual methods. I don't believe this is a...
Additional navigation options Compilation warningwarning: delete called on non-final 'LightGBM::ScoreUpdater' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]#5400 Description StrikerRUS openedon Aug 3, 2022 ...
Virtual destructors are only required when a pointer has type (Base *) and points to an object of type (Foo *) where Foo is a sub-class of Base. The warnings obtained by enabling the -Wdelete-non-virtual-dtor flag do not reflect this. Instead they warn you whenever you delete a (Ba...
>> virtual const string_type& __X() const; >> }; >> >> +#if __has_warning("-Wnon-virtual-dtor") >> +#pragma clang diagnostic pop >> +#endif >> + >> template <class _CharT, class _InputIterator = >> istreambuf_iterator<_CharT> > ...