From cf9993a55d6b3d12138c270d1c4de25f3bad734f Mon Sep 17 00:00:00 2001 From: Fabian Ruffy <5960321+fruffy@users.noreply.github.com> Date: Wed, 10 Jul 2024 08:53:45 -0400 Subject: [PATCH] Update frontends/common/parser_options.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Vladimír Štill Signed-off-by: Fabian Ruffy <5960321+fruffy@users.noreply.github.com> --- frontends/common/parser_options.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontends/common/parser_options.h b/frontends/common/parser_options.h index a4d1e7ce47b..eb76a6ecef2 100644 --- a/frontends/common/parser_options.h +++ b/frontends/common/parser_options.h @@ -66,9 +66,9 @@ class ParserOptions : public Util::Options { public: PreprocessorResult() = default; - PreprocessorResult &operator=(PreprocessorResult &&) = default; - PreprocessorResult(PreprocessorResult &&) = default; - /// There must only be one PreprocessorResult per file handle. Delete the copy constructor. + /// There must only be one PreprocessorResult per file handle. Forbit copy & move. + PreprocessorResult &operator=(PreprocessorResult &&) = delete; + PreprocessorResult(PreprocessorResult &&) = delete; PreprocessorResult(const PreprocessorResult &) = delete; PreprocessorResult &operator=(const PreprocessorResult &) = delete; PreprocessorResult(FILE *file, bool closeInput) : _file(file), _closeInput(closeInput) {}