0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 12:12:15 +02:00

process: added move-aware Command(Argv) constructor.

This commit is contained in:
James Yonan 2016-03-19 01:47:18 -06:00
parent 55011e4a9d
commit 63f45f0dbc

View File

@ -31,6 +31,7 @@
#include <string>
#include <memory>
#include <utility>
#include <openvpn/common/size.hpp>
#include <openvpn/common/action.hpp>
@ -197,6 +198,13 @@ namespace openvpn {
{
typedef RCPtr<Command> Ptr;
Command() {}
Command(Argv argv_arg)
: argv(std::move(argv_arg))
{
}
Command* copy() const
{
Command* ret = new Command;