Skip to content
Permalink
Browse files

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.
  • Loading branch information...
jbeder committed Mar 24, 2019
1 parent 82e9571 commit bd7f8c60c82614bb0bd1c526db2cbc39dac02fec
Showing with 2 additions and 3 deletions.
  1. +2 −3 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

0 comments on commit bd7f8c6

Please sign in to comment.
You can’t perform that action at this time.