diff --git a/doc/v2/introduction.qbk b/doc/v2/introduction.qbk index 18029c3c..f762296e 100644 --- a/doc/v2/introduction.qbk +++ b/doc/v2/introduction.qbk @@ -73,14 +73,6 @@ Instead of using ascii-APIs on windows, process V2 just assumes UTF-8 everywhere [endsect] -[section:src Separate compilation] - -Boost.process v2 supports separate compilation similar to other boost libraries. -It can be achieved by defining `BOOST_PROCESS_V2_SEPARATE_COMPILATION` and including -`` in a single compile unit. - -[endsect] - [section:limit_fd Fd safe by default] While not a problem on windows (since HANDLEs get manually enabled for inheritance), diff --git a/include/boost/process/v2/ext/cmd.hpp b/include/boost/process/v2/ext/cmd.hpp index 494df858..6308885e 100644 --- a/include/boost/process/v2/ext/cmd.hpp +++ b/include/boost/process/v2/ext/cmd.hpp @@ -36,7 +36,7 @@ BOOST_PROCESS_V2_DECL shell cmd(HANDLE handle); #endif template -BOOST_PROCESS_V2_DECL shell cmd(basic_process_handle & handle, error_code & ec) +inline shell cmd(basic_process_handle & handle, error_code & ec) { #if defined(BOOST_PROCESS_V2_WINDOWS) return cmd(handle.native_handle(), ec); @@ -46,7 +46,7 @@ BOOST_PROCESS_V2_DECL shell cmd(basic_process_handle & handle, error_c } template -BOOST_PROCESS_V2_DECL shell cmd(basic_process_handle & handle) +inline shell cmd(basic_process_handle & handle) { #if defined(BOOST_PROCESS_V2_WINDOWS) return cmd(handle.native_handle()); diff --git a/include/boost/process/v2/ext/cwd.hpp b/include/boost/process/v2/ext/cwd.hpp index 703b1ac3..07e76cf3 100644 --- a/include/boost/process/v2/ext/cwd.hpp +++ b/include/boost/process/v2/ext/cwd.hpp @@ -27,7 +27,7 @@ BOOST_PROCESS_V2_DECL filesystem::path cwd(pid_type pid, error_code & ec); BOOST_PROCESS_V2_DECL filesystem::path cwd(pid_type pid); template -BOOST_PROCESS_V2_DECL filesystem::path cwd(basic_process_handle & handle, error_code & ec) +inline filesystem::path cwd(basic_process_handle & handle, error_code & ec) { #if defined(BOOST_PROCESS_V2_WINDOWS) return cwd(handle.native_handle(), ec); @@ -37,7 +37,7 @@ BOOST_PROCESS_V2_DECL filesystem::path cwd(basic_process_handle & hand } template -BOOST_PROCESS_V2_DECL filesystem::path cwd(basic_process_handle & handle) +inline filesystem::path cwd(basic_process_handle & handle) { #if defined(BOOST_PROCESS_V2_WINDOWS) return cwd(handle.native_handle()); diff --git a/include/boost/process/v2/ext/env.hpp b/include/boost/process/v2/ext/env.hpp index 9a30a7fd..8c634739 100644 --- a/include/boost/process/v2/ext/env.hpp +++ b/include/boost/process/v2/ext/env.hpp @@ -120,7 +120,7 @@ BOOST_PROCESS_V2_DECL env_view env(pid_type pid, error_code & ec); BOOST_PROCESS_V2_DECL env_view env(pid_type pid); template -BOOST_PROCESS_V2_DECL env_view env(basic_process_handle & handle, error_code & ec) +inline env_view env(basic_process_handle & handle, error_code & ec) { #if defined(BOOST_PROCESS_V2_WINDOWS) return env(handle.native_handle(), ec); @@ -130,7 +130,7 @@ BOOST_PROCESS_V2_DECL env_view env(basic_process_handle & handle, erro } template -BOOST_PROCESS_V2_DECL env_view env(basic_process_handle & handle) +inline env_view env(basic_process_handle & handle) { #if defined(BOOST_PROCESS_V2_WINDOWS) return env(handle.native_handle());