summaryrefslogtreecommitdiff
path: root/src/theory/output_channel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/theory/output_channel.h')
-rw-r--r--src/theory/output_channel.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/theory/output_channel.h b/src/theory/output_channel.h
index cec499a13..c530434f5 100644
--- a/src/theory/output_channel.h
+++ b/src/theory/output_channel.h
@@ -28,6 +28,14 @@ class OutputChannel {
public:
/**
+ * Destructs an OutputChannel. This implementation does nothing,
+ * but we need a virtual destructor for safety in case subclasses
+ * have a destructor.
+ */
+ virtual ~OutputChannel() {
+ }
+
+ /**
* With safePoint(), the theory signals that it is at a safe point
* and can be interrupted.
*/
@@ -68,6 +76,14 @@ class ExplainOutputChannel {
public:
/**
+ * Destructs an ExplainOutputChannel. This implementation does
+ * nothing, but we need a virtual destructor for safety in case
+ * subclasses have a destructor.
+ */
+ virtual ~ExplainOutputChannel() {
+ }
+
+ /**
* With safePoint(), the theory signals that it is at a safe point
* and can be interrupted. The default implementation never
* interrupts.
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback