Fixed output of 0-ary predicates.
This commit is contained in:
parent
e714060112
commit
57a64f3af9
@ -15,6 +15,9 @@ namespace sas
|
|||||||
|
|
||||||
std::ostream &operator <<(std::ostream &ostream, const Predicate &predicate)
|
std::ostream &operator <<(std::ostream &ostream, const Predicate &predicate)
|
||||||
{
|
{
|
||||||
|
if (predicate.arguments.empty())
|
||||||
|
return (ostream << predicate.name);
|
||||||
|
|
||||||
ostream << predicate.name << "(";
|
ostream << predicate.name << "(";
|
||||||
|
|
||||||
for (size_t i = 0; i < predicate.arguments.size(); i++)
|
for (size_t i = 0; i < predicate.arguments.size(); i++)
|
||||||
|
Reference in New Issue
Block a user