Skip to content

Commit

Permalink
attempting to fix msvc build.
Browse files Browse the repository at this point in the history
  • Loading branch information
klemens-morgenstern committed Dec 20, 2024
1 parent ba2124a commit b78aac4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/stdio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ int main(int argc, char *argv[])
// ignore stderr
asio::local::stream_protocol::socket sock{ctx}, other{ctx};
asio::local::connect_pair(sock, other);
process proc(ctx, "~/not-a-virus", {}, process_stdio{sock, sock, nullptr});
process proc(ctx, "~/not-a-virus", {}, process_stdio{{sock}, {sock}, nullptr});
proc.wait();
//end::native_handle[]
}
Expand Down
2 changes: 1 addition & 1 deletion include/boost/process/v2/process_handle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ using basic_process_handle = detail::basic_process_handle_win<Executor>;
#if defined(BOOST_PROCESS_V2_PIDFD_OPEN)
template<typename Executor = net::any_io_executor>
using basic_process_handle = detail::basic_process_handle_fd<Executor>;
#elif defined(BOOST_PROCESS_V2_PDFORK)
#elif defined(BOOST_PROCESS_V2_PDFORK) || defined(BOOST_PROCESS_V2_PIPE_LAUNCHER)
template<typename Executor = net::any_io_executor>
using basic_process_handle = detail::basic_process_handle_fd_or_signal<Executor>;
#else
Expand Down

0 comments on commit b78aac4

Please sign in to comment.