Revert "Disallow moving for the Parser."
authorAdrian Bunk <bunk@debian.org>
Sun, 10 May 2020 08:39:29 +0000 (11:39 +0300)
committerRaspbian forward porter <root@raspbian.org>
Thu, 26 Aug 2021 22:24:06 +0000 (23:24 +0100)
This reverts commit bd7f8c60c82614bb0bd1c526db2cbc39dac02fec.

Gbp-Pq: Name 0003-Revert-Disallow-moving-for-the-Parser.patch

include/yaml-cpp/parser.h

index 2f403c3504805641884eab084e4c7729e1c18cdd..e9fba0c01f68aef5a1281746ae0ff7d7dc5b52c3 100644 (file)
@@ -28,10 +28,11 @@ class YAML_CPP_API Parser {
   /** Constructs an empty parser (with no input. */
   Parser();
 
+  /** non copyable but movable */
   Parser(const Parser&) = delete;
-  Parser(Parser&&) = delete;
+  Parser(Parser&&) = default;
   Parser& operator=(const Parser&) = delete;
-  Parser& operator=(Parser&&) = delete;
+  Parser& operator=(Parser&&) = default;
 
   /**
    * Constructs a parser from the given input stream. The input stream must