Skip to content

Conversation

@jwhitworth-vicon
Copy link

While trying to use Boost.Process with the non-Boost standalone Asio, I found that some of the code in Boost.Process failed to compile when defining BOOST_PROCESS_STANDALONE, BOOST_PROCESS_V2_STANDALONE and BOOST_PROCESS_USE_STD_FS.

These fixes address the issues raised in #535.

…TANDALONE is defined. `std::error_code::assign` takes two arguments and `::BOOST_PROCESS_V2_NAMESPACE::detail::get_last_error()` is already returning an error code so we can use the assignment operator instead.

Also wrapped the statement in a do/while block for safety and to match the other macros in the file.
…er implementation. This causes a compiler error when compiling with `BOOST_PROCESS_STANDALONE` defined.
…one of the basic_process constructor overloads. This was causing a compilation error when `BOOST_PROCESS_STANDALONE` was defined.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant