Skip to content

Commit 3aa39c0

Browse files
bumping windows test.
1 parent dcc8c56 commit 3aa39c0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

example/stdio.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ int main(int argc, char *argv[])
5555
process proc(ctx, "~/not-a-virus", {}, process_stdio{sock, sock, nullptr});
5656
proc.wait();
5757
//end::native_handle[]
58+
using err_t = decltype(process_stdio{}.err);
59+
err_t err{sock};
5860
}
5961
{
6062
//tag::popen[]

include/boost/process/v2/stdio.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ struct process_io_binding
8080
process_io_binding() = default;
8181

8282
template<typename Stream>
83-
process_io_binding(Stream && str, decltype(std::declval<Stream>().native_handle()) = {})
83+
process_io_binding(Stream && str, decltype(std::declval<Stream>().native_handle())* = nullptr)
8484
: process_io_binding(str.native_handle())
8585
{}
8686

@@ -166,7 +166,7 @@ struct process_io_binding
166166
process_io_binding() = default;
167167

168168
template<typename Stream>
169-
process_io_binding(Stream && str, decltype(std::declval<Stream>().native_handle()) = {})
169+
process_io_binding(Stream && str, decltype(std::declval<Stream>().native_handle()) * = nullptr)
170170
: process_io_binding(str.native_handle())
171171
{}
172172

0 commit comments

Comments
 (0)