From 63f45f0dbcef5f5d653cc71b0769afe5c528ce8e Mon Sep 17 00:00:00 2001 From: James Yonan Date: Sat, 19 Mar 2016 01:47:18 -0600 Subject: [PATCH] process: added move-aware Command(Argv) constructor. --- openvpn/common/process.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/openvpn/common/process.hpp b/openvpn/common/process.hpp index f5bf1c46..69a0c521 100644 --- a/openvpn/common/process.hpp +++ b/openvpn/common/process.hpp @@ -31,6 +31,7 @@ #include #include +#include #include #include @@ -197,6 +198,13 @@ namespace openvpn { { typedef RCPtr Ptr; + Command() {} + + Command(Argv argv_arg) + : argv(std::move(argv_arg)) + { + } + Command* copy() const { Command* ret = new Command;