patrick
/
plasp
Archived
1
0
Fork 0

Removed unwanted copy constructor.

This commit is contained in:
Patrick Lühne 2017-05-17 20:00:01 +02:00
parent b3fd49ef97
commit ff1d582605
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF
1 changed files with 0 additions and 17 deletions

View File

@ -243,18 +243,6 @@ struct NAry
NAry &operator=(NAry &&other) = default;
Arguments arguments;
protected:
static Arguments copyArguments(const NAry<Derived, Argument> &other)
{
Arguments arguments;
arguments.reserve(other.arguments.size());
for (const auto &argument : other.arguments)
arguments.emplace_back(std::move(deepCopyVariant(argument)));
return arguments;
}
};
////////////////////////////////////////////////////////////////////////////////////////////////////
@ -330,11 +318,6 @@ struct Either: public NAry<Either<Argument>, Argument>
: NAry<Either<Argument>, Argument>(std::move(arguments))
{
}
Either(const Either &other)
: NAry<Either<Argument>, Argument>(this->copyArguments(other))
{
}
};
////////////////////////////////////////////////////////////////////////////////////////////////////