summaryrefslogtreecommitdiff
path: root/src/ValueBase.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-03-25 00:27:25 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-03-25 00:27:25 +0900
commit4d8c17d104ad81b4f5983d0edacefcfc5f868bf8 (patch)
tree12d3749c8f475f2146d6ab9673440bac0c6a0f60 /src/ValueBase.h
parentd8948056b3bf54d55eaa13b918e3d54f2fd3a683 (diff)
Fixed compile error on open solaris
Fixes bug#3497518
Diffstat (limited to 'src/ValueBase.h')
-rw-r--r--src/ValueBase.h14
1 files changed, 1 insertions, 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<typename T, typename VPtr>
-const T* downcast(const VPtr& v)
-{
- if(v) {
- DowncastValueBaseVisitor<T> visitor;
- v->accept(visitor);
- return visitor.getResult();
- } else {
- return 0;
- }
-}
-
-template<typename T, typename VPtr>
-T* downcast(VPtr& v)
+T* downcast(const VPtr& v)
{
if(v) {
DowncastValueBaseVisitor<T> visitor;