Fixed compile error on open solaris

Fixes bug#3497518
This commit is contained in:
Tatsuhiro Tsujikawa 2012-03-25 00:27:25 +09:00
parent d8948056b3
commit 4d8c17d104

View File

@ -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;