From 4d8c17d104ad81b4f5983d0edacefcfc5f868bf8 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 25 Mar 2012 00:27:25 +0900 Subject: [PATCH] Fixed compile error on open solaris Fixes bug#3497518 --- src/ValueBase.h | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) 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;