diff --git a/doc/v2/stdio.qbk b/doc/v2/stdio.qbk index b21f6f718..915cdfd2c 100644 --- a/doc/v2/stdio.qbk +++ b/doc/v2/stdio.qbk @@ -12,7 +12,7 @@ automatically connected and the other side will get assigned to the child proces ``` asio::io_context ctx; - asio::readable_pipe rp; + asio::readable_pipe rp{ctx}; process proc(ctx, "/usr/bin/g++", {"--version"}, process_stdio{{ /* in to default */}, rp, { /* err to default */ }}); std::string output; @@ -86,4 +86,4 @@ It starts a process and connects pipes for stdin and stdout, so that the popen o [endsect] -[endsect] \ No newline at end of file +[endsect]