Commit
2c2f05c moved some function
definitions from dump.h to dump.cpp, which is good. However, the
corresponding definitions for muzzled builds weren't moved, so muzzled builds
defined the operator << multiple times. This made our nightly
competition build fail. This commit fixes the issue by moving the
alternative definitions to the source file as well.
namespace CVC4 {
+#if defined(CVC4_DUMPING) && !defined(CVC4_MUZZLE)
+
CVC4dumpstream& CVC4dumpstream::operator<<(const Command& c)
{
if (d_os != nullptr)
return *this;
}
+#else
+
+CVC4dumpstream& CVC4dumpstream::operator<<(const Command& c) { return *this; }
+CVC4dumpstream& CVC4dumpstream::operator<<(const NodeCommand& nc)
+{
+ return *this;
+}
+
+#endif /* CVC4_DUMPING && !CVC4_MUZZLE */
+
DumpC DumpChannel CVC4_PUBLIC;
std::ostream& DumpC::setStream(std::ostream* os) {
public:
CVC4dumpstream() {}
CVC4dumpstream(std::ostream& os) {}
- CVC4dumpstream& operator<<(const Command& c) { return *this; }
- CVC4dumpstream& operator<<(const NodeCommand& nc) { return *this; }
+ CVC4dumpstream& operator<<(const Command& c);
+ CVC4dumpstream& operator<<(const NodeCommand& nc);
}; /* class CVC4dumpstream */
#endif /* CVC4_DUMPING && !CVC4_MUZZLE */