mirror of
https://github.com/boostorg/process.git
synced 2026-01-26 06:42:26 +00:00
updated examples
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user