summaryrefslogtreecommitdiff
path: root/src/smt_util/lemma_channels.h
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2018-08-07 17:26:58 -0700
committerGitHub <noreply@github.com>2018-08-07 17:26:58 -0700
commitc831d34205a473cbace8a546704a992ba8220dd6 (patch)
tree0dae0fabc4b96b2a53665bd0c6c965361538517d /src/smt_util/lemma_channels.h
parent82515cbaef14918c7ce825e29a30de01c13d90ac (diff)
Delete functions instead of using CVC4_UNDEFINED (#1794)
C++11 supports explicitly deleting functions that should not be used (explictly or implictly), e.g. copy or assignment constructors. We were previously using the CVC4_UNDEFINED macro that used a compiler-specific attribute. The C++11 feature should be more portable.
Diffstat (limited to 'src/smt_util/lemma_channels.h')
-rw-r--r--src/smt_util/lemma_channels.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/smt_util/lemma_channels.h b/src/smt_util/lemma_channels.h
index 67de37ed8..b2af0dfe4 100644
--- a/src/smt_util/lemma_channels.h
+++ b/src/smt_util/lemma_channels.h
@@ -60,10 +60,10 @@ class CVC4_PUBLIC LemmaChannels {
private:
// Disable copy constructor.
- LemmaChannels(const LemmaChannels&) CVC4_UNDEFINED;
+ LemmaChannels(const LemmaChannels&) = delete;
// Disable assignment operator.
- LemmaChannels& operator=(const LemmaChannels&) CVC4_UNDEFINED;
+ LemmaChannels& operator=(const LemmaChannels&) = delete;
/** This captures the old options::lemmaInputChannel .*/
LemmaInputChannel* d_lemmaInputChannel;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback