diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2018-08-07 17:26:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-07 17:26:58 -0700 |
commit | c831d34205a473cbace8a546704a992ba8220dd6 (patch) | |
tree | 0dae0fabc4b96b2a53665bd0c6c965361538517d /src/options/options.h | |
parent | 82515cbaef14918c7ce825e29a30de01c13d90ac (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/options/options.h')
-rw-r--r-- | src/options/options.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/options/options.h b/src/options/options.h index 8ca713642..16210e1a3 100644 --- a/src/options/options.h +++ b/src/options/options.h @@ -114,13 +114,13 @@ class CVC4_PUBLIC Options { * Options cannot be copied as they are given an explicit list of * Listeners to respond to. */ - Options(const Options& options) CVC4_UNDEFINED; + Options(const Options& options) = delete; /** * Options cannot be assigned as they are given an explicit list of * Listeners to respond to. */ - Options& operator=(const Options& options) CVC4_UNDEFINED; + Options& operator=(const Options& options) = delete; static std::string formatThreadOptionException(const std::string& option); |