diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/CommonGraphOptions.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/utils/CommonGraphOptions.h b/utils/CommonGraphOptions.h index ef2e4fb946..b429a18069 100644 --- a/utils/CommonGraphOptions.h +++ b/utils/CommonGraphOptions.h @@ -79,10 +79,16 @@ public: * @param[in,out] parser A parser on which "parse()" hasn't been called yet. */ CommonGraphOptions(CommandLineParser &parser); - /** Prevent instances of this class from being copy constructed */ + /** Prevent instances of this class from being copied (As this class contains pointers) */ CommonGraphOptions(const CommonGraphOptions &) = delete; - /** Prevent instances of this class from being copied */ + /** Prevent instances of this class from being copied (As this class contains pointers) */ CommonGraphOptions &operator=(const CommonGraphOptions &) = delete; + /** Allow instances of this class to be moved */ + CommonGraphOptions(CommonGraphOptions &&) = default; + /** Allow instances of this class to be moved */ + CommonGraphOptions &operator=(CommonGraphOptions &&) = default; + /** Default destructor */ + ~CommonGraphOptions() = default; ToggleOption *help; /**< Show help option */ SimpleOption<int> *threads; /**< Number of threads option */ |