From: Adrian Bunk Date: Sun, 10 May 2020 08:39:29 +0000 (+0300) Subject: Revert "Disallow moving for the Parser." X-Git-Tag: archive/raspbian/0.6.3-9+rpi1^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8bbe306e4c948d4436649a78070134fe0012f052;p=yaml-cpp.git Revert "Disallow moving for the Parser." This reverts commit bd7f8c60c82614bb0bd1c526db2cbc39dac02fec. Gbp-Pq: Name 0003-Revert-Disallow-moving-for-the-Parser.patch --- diff --git a/include/yaml-cpp/parser.h b/include/yaml-cpp/parser.h index 2f403c3..e9fba0c 100644 --- a/include/yaml-cpp/parser.h +++ b/include/yaml-cpp/parser.h @@ -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