Consistently apply override (and not virtual) to overriding virtuals

Three functions were missing `override`, triggering `-Wsuggest-override` on Clang.
Many functions had redundant `virtual ... override`.
This commit is contained in:
Arthur O'Dwyer
2023-08-21 10:23:48 -07:00
parent a250a4d430
commit 28880f2985
9 changed files with 40 additions and 40 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ struct function_state : function_state_base<R, Args...> {
function_state_base<R, Args...> *clone() const override {
return new function_state(*this);
}
virtual funbase* as_funbase() override {
funbase* as_funbase() override {
if(std::is_base_of<funbase, T>::value) return (funbase*) (&t_);
return nullptr;
}