diff --git a/hyper_function.h b/hyper_function.h index 5e959238..9950dda5 100644 --- a/hyper_function.h +++ b/hyper_function.h @@ -29,7 +29,7 @@ struct function_state : function_state_base { function_state_base *clone() const override { return new function_state(*this); } - virtual funbase* as_funbase() { + virtual funbase* as_funbase() override { if(std::is_base_of::value) return (funbase*) (&t_); return nullptr; }