2
0
mirror of https://github.com/boostorg/process.git synced 2026-01-26 06:42:26 +00:00

updated examples

This commit is contained in:
klemens-morgenstern
2016-10-23 01:38:14 +02:00
parent 1c0f992721
commit d7ff198dc0
18 changed files with 138 additions and 296 deletions

View File

@@ -11,12 +11,19 @@
#include <vector>
#include <string>
using namespace boost::process;
namespace bp = boost::process;
int main()
{
//[args
child c("test.exe", "--foo", "/bar");
//]
bp::child c("test.exe", "--foo", "/bar");
//or explicit
bp::child c2(
bp::exe="test.exe",
bp::args={"--foo", "/bar"}
);
c.wait();
c2.wait();
}