projects
/
yaml-cpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1ae16e
)
Revert "Disallow moving for the Parser."
author
Adrian Bunk
<bunk@debian.org>
Sun, 10 May 2020 08:39:29 +0000
(11:39 +0300)
committer
Raspbian 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
patch
|
blob
|
history
diff --git
a/include/yaml-cpp/parser.h
b/include/yaml-cpp/parser.h
index 2f403c3504805641884eab084e4c7729e1c18cdd..e9fba0c01f68aef5a1281746ae0ff7d7dc5b52c3 100644
(file)
--- 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&&) = de
lete
;
+ Parser(Parser&&) = de
fault
;
Parser& operator=(const Parser&) = delete;
- Parser& operator=(Parser&&) = de
lete
;
+ Parser& operator=(Parser&&) = de
fault
;
/**
* Constructs a parser from the given input stream. The input stream must