From bd7f8c60c82614bb0bd1c526db2cbc39dac02fec Mon Sep 17 00:00:00 2001 From: Jesse Beder Date: Sun, 24 Mar 2019 17:01:14 -0500 Subject: [PATCH] Disallow moving for the Parser. It wouldn't have compiled anyways, since the Scanner and Directive objects inside it are incomplete types at the time of the move definitions. --- include/yaml-cpp/parser.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/yaml-cpp/parser.h b/include/yaml-cpp/parser.h index e9fba0c..2f403c3 100644 --- a/include/yaml-cpp/parser.h +++ b/include/yaml-cpp/parser.h @@ -28,11 +28,10 @@ class YAML_CPP_API Parser { /** Constructs an empty parser (with no input. */ Parser(); - /** non copyable but movable */ Parser(const Parser&) = delete; - Parser(Parser&&) = default; + Parser(Parser&&) = delete; Parser& operator=(const Parser&) = delete; - Parser& operator=(Parser&&) = default; + Parser& operator=(Parser&&) = delete; /** * Constructs a parser from the given input stream. The input stream must