mirror of
https://github.com/aria2/aria2.git
synced 2025-01-01 07:36:24 +00:00
Fixed compile error on open solaris
Fixes bug#3497518
This commit is contained in:
parent
d8948056b3
commit
4d8c17d104
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user