diff --git a/src/ValueBase.h b/src/ValueBase.h index b7b340d9..f3d90af0 100644 --- a/src/ValueBase.h +++ b/src/ValueBase.h @@ -332,19 +332,7 @@ private: }; template -const T* downcast(const VPtr& v) -{ - if(v) { - DowncastValueBaseVisitor visitor; - v->accept(visitor); - return visitor.getResult(); - } else { - return 0; - } -} - -template -T* downcast(VPtr& v) +T* downcast(const VPtr& v) { if(v) { DowncastValueBaseVisitor visitor;