From 360cbd42a07003b54678fef630cc9fc58710f95b Mon Sep 17 00:00:00 2001 From: Michael Uleysky Date: Sun, 25 Oct 2015 14:41:33 +1000 Subject: [PATCH] Move const qualifier in right place. --- include/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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...);