tryToStream<SetOptionCommand>(out, c) ||
tryToStream<GetOptionCommand>(out, c) ||
tryToStream<DatatypeDeclarationCommand>(out, c) ||
- tryToStream<CommentCommand>(out, c)) {
+ tryToStream<CommentCommand>(out, c) ||
+ tryToStream<EmptyCommand>(out, c)) {
return;
}
out << "% " << c->getComment();
}
+static void toStream(std::ostream& out, const EmptyCommand* c) {
+}
+
template <class T>
static bool tryToStream(std::ostream& out, const Command* c) {
if(typeid(*c) == typeid(T)) {
tryToStream<SetOptionCommand>(out, c) ||
tryToStream<GetOptionCommand>(out, c) ||
tryToStream<DatatypeDeclarationCommand>(out, c) ||
- tryToStream<CommentCommand>(out, c)) {
+ tryToStream<CommentCommand>(out, c) ||
+ tryToStream<EmptyCommand>(out, c)) {
return;
}
out << "(set-info :notes \"" << c->getComment() << "\")";
}
+static void toStream(std::ostream& out, const EmptyCommand* c) {
+}
+
template <class T>
static bool tryToStream(std::ostream& out, const Command* c) {
if(typeid(*c) == typeid(T)) {