Skip to content

Commit 5ec8b64

Browse files
authored
apacheGH-45053: [C++] Add support for Boost 1.87.0 (apache#45057)
### Rationale for this change Boost 1.87.0 removed `BOOST_PROCESS_V2_ASIO_NAMESPACE`: boostorg/process@e827d14 ### What changes are included in this PR? Use `BOOST_PROCESS_V2_NAMESPACE::net` instead. ### Are these changes tested? Yes. ### Are there any user-facing changes? No. * GitHub Issue: apache#45053 Authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
1 parent 48e11b8 commit 5ec8b64

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cpp/src/arrow/testing/process.cc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,14 @@
8585
# include <thread>
8686

8787
# ifdef BOOST_PROCESS_USE_V2
88-
namespace asio = BOOST_PROCESS_V2_ASIO_NAMESPACE;
8988
namespace process = BOOST_PROCESS_V2_NAMESPACE;
9089
namespace filesystem = process::filesystem;
90+
// For Boost < 1.87.0
91+
# ifdef BOOST_PROCESS_V2_ASIO_NAMESPACE
92+
namespace asio = BOOST_PROCESS_V2_ASIO_NAMESPACE;
93+
# else
94+
namespace asio = process::net;
95+
# endif
9196
# elif defined(BOOST_PROCESS_HAVE_V1)
9297
namespace process = boost::process::v1;
9398
namespace filesystem = boost::process::v1::filesystem;

0 commit comments

Comments
 (0)