diff --git a/include/common.h b/include/common.h index 0923735..88322ca 100644 --- a/include/common.h +++ b/include/common.h @@ -108,7 +108,7 @@ class OBTypeM: public OBTypeM return true; } template - auto operator ()(Args... args) -> decltype(Func()(dynamic_cast(this->P()),args...)) const + auto operator ()(Args... args) const -> decltype(Func()(dynamic_cast(this->P()),args...)) { typedef decltype(Func()(dynamic_cast(this->P()),args...)) T; if(right) return Func()(dynamic_cast(OBTypeM::P()),args...);