From 46b32368147e7975bf98826c30eed48e22ba07b4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 8 Jan 2018 12:46:58 +0200 Subject: Implement manual copying of process_path Also fix bug in move ctor/assignment. --- libbutl/process.mxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libbutl/process.mxx') diff --git a/libbutl/process.mxx b/libbutl/process.mxx index 199273b..4faa808 100644 --- a/libbutl/process.mxx +++ b/libbutl/process.mxx @@ -135,6 +135,11 @@ LIBBUTL_MODEXPORT namespace butl process_path (const char* i, path&& r, path&& e); ~process_path (); + // Manual copying. Should not use args[0] RAII. See path_search() for the + // init semantics. + // + process_path (const process_path&, bool init); + private: friend class process; const char** args0_ = nullptr; -- cgit v1.1