From c5debf11cf65fce5f9ebbef0a05f389173df6fea Mon Sep 17 00:00:00 2001 From: joaquintides Date: Sat, 18 Mar 2023 09:15:28 +0100 Subject: [PATCH] added explicit disabling/enabling of parallel algorithms --- include/boost/unordered/detail/foa/concurrent_table.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/boost/unordered/detail/foa/concurrent_table.hpp b/include/boost/unordered/detail/foa/concurrent_table.hpp index 1e5aaa97..072bf0f0 100644 --- a/include/boost/unordered/detail/foa/concurrent_table.hpp +++ b/include/boost/unordered/detail/foa/concurrent_table.hpp @@ -26,6 +26,13 @@ #include #include +#if !defined(BOOST_UNORDERED_DISABLE_PARALLEL_ALGORITHMS) +#if defined(BOOST_UNORDERED_ENABLE_PARALLEL_ALGORITHMS)|| \ + !defined(BOOST_NO_CXX17_HDR_EXECUTION) +#define BOOST_UNORDERED_PARALLEL_ALGORITHMS +#endif +#endif + #if defined(BOOST_UNORDERED_PARALLEL_ALGORITHMS) #include #include