Fixed output of 0-ary predicates.

This commit is contained in:
Patrick Lühne 2016-05-21 02:31:47 +02:00
parent e714060112
commit 57a64f3af9

View File

@ -15,6 +15,9 @@ namespace sas
std::ostream &operator <<(std::ostream &ostream, const Predicate &predicate)
{
if (predicate.arguments.empty())
return (ostream << predicate.name);
ostream << predicate.name << "(";
for (size_t i = 0; i < predicate.arguments.size(); i++)