Fixed compile error on open solaris

Fixes bug#3497518
pull/14/head
Tatsuhiro Tsujikawa 2012-03-25 00:27:25 +09:00
parent d8948056b3
commit 4d8c17d104
1 changed files with 1 additions and 13 deletions

View File

@ -332,19 +332,7 @@ private:
}; };
template<typename T, typename VPtr> template<typename T, typename VPtr>
const T* downcast(const VPtr& v) 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)
{ {
if(v) { if(v) {
DowncastValueBaseVisitor<T> visitor; DowncastValueBaseVisitor<T> visitor;