mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-26 01:50:36 +00:00
added missing override in hyper_function.h
This commit is contained in:
parent
29d50a9f21
commit
e3357c9b26
@ -29,7 +29,7 @@ struct function_state : function_state_base<R, Args...> {
|
|||||||
function_state_base<R, Args...> *clone() const override {
|
function_state_base<R, Args...> *clone() const override {
|
||||||
return new function_state(*this);
|
return new function_state(*this);
|
||||||
}
|
}
|
||||||
virtual funbase* as_funbase() {
|
virtual funbase* as_funbase() override {
|
||||||
if(std::is_base_of<funbase, T>::value) return (funbase*) (&t_);
|
if(std::is_base_of<funbase, T>::value) return (funbase*) (&t_);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user