From d3aca6fd0e7acfb41afcc38509c29a6be1fcfe29 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Wed, 15 May 2024 20:15:42 +0300 Subject: [PATCH] Doc: Add missing ctor param in example --- doc/v2/stdio.qbk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]