macro processor: Expression class has to_string function as well, so no need for cast

issue#70
Houtan Bastani 2019-08-23 12:07:31 +02:00
parent 7f96d4a1c9
commit d4ad2cbb5e
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
1 changed files with 2 additions and 2 deletions

View File

@ -1092,7 +1092,7 @@ Array::to_string() const noexcept
return "[]";
string retval = "[";
for (const auto & it : arr)
retval += dynamic_pointer_cast<BaseType>(it)->to_string() + ", ";
retval += it->to_string() + ", ";
return retval.substr(0, retval.size()-2) + "]";
}
@ -1101,7 +1101,7 @@ Tuple::to_string() const noexcept
{
string retval = "(";
for (const auto & it : tup)
retval += dynamic_pointer_cast<BaseType>(it)->to_string() + ", ";
retval += it->to_string() + ", ";
return retval.substr(0, retval.size()-2) + ")";
}