Skip to content

Commit ed70996

Browse files
Removed filesystem::path from ABI
Closes #516.
1 parent 7fb5049 commit ed70996

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

include/boost/process/v2/environment.hpp

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,9 +1762,12 @@ struct process_environment
17621762
std::vector<environment::key_value_pair> env_buffer;
17631763
std::vector<wchar_t> unicode_env;
17641764

1765-
BOOST_PROCESS_V2_DECL
17661765
error_code on_setup(windows::default_launcher & launcher,
1767-
const filesystem::path &, const std::wstring &);
1766+
const filesystem::path &, const std::wstring &)
1767+
{
1768+
return do_setup(launcher);
1769+
}
1770+
BOOST_PROCESS_V2_DECL error_code do_setup(windows::default_launcher & launcher);
17681771

17691772
#else
17701773

@@ -1813,7 +1816,13 @@ struct process_environment
18131816

18141817
BOOST_PROCESS_V2_DECL
18151818
error_code on_setup(posix::default_launcher & launcher,
1816-
const filesystem::path &, const char * const *);
1819+
const filesystem::path &, const char * const *)
1820+
{
1821+
return do_setup(launcher);
1822+
}
1823+
1824+
BOOST_PROCESS_V2_DECL error_code do_setup(posix::default_launcher & launcher);
1825+
18171826

18181827
std::vector<environment::key_value_pair> env_buffer;
18191828
std::vector<const char *> env;

src/environment.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ BOOST_PROCESS_V2_BEGIN_NAMESPACE
1717

1818
#if defined(BOOST_PROCESS_V2_WINDOWS)
1919

20-
error_code process_environment::on_setup(windows::default_launcher & launcher, const filesystem::path &, const std::wstring &)
20+
error_code process_environment::do_setup(windows::default_launcher & launcher)
2121
{
2222
if (!unicode_env.empty() && !ec)
2323
{
@@ -30,7 +30,7 @@ error_code process_environment::on_setup(windows::default_launcher & launcher, c
3030

3131
#else
3232

33-
error_code process_environment::on_setup(posix::default_launcher & launcher, const filesystem::path &, const char * const *)
33+
error_code process_environment::do_setup(posix::default_launcher & launcher)
3434
{
3535
launcher.env = env.data();
3636
return error_code{};

0 commit comments

Comments
 (0)