drexlerd / Loki

GNU General Public License v3.0
4 stars 3 forks source link

Printing depends on requirements #3

Closed drexlerd closed 10 months ago

drexlerd commented 10 months ago

I have troubles printing the parameter list of a Predicate because the "object" type should not be printed if :typing is disabled. Furthermore the print function should not take additional arguments since we want to overload the operator<< of sd::ostream.

drexlerd commented 10 months ago

Cleanest solution is probably to not assume that the output of str() is a parseable representation and provide a separate str(Requirements& requirement) function that outputs a parseable representation. We can simply provide customizations for the few exceptions.