diff --git a/include/boost/unordered/detail/foa/concurrent_table.hpp b/include/boost/unordered/detail/foa/concurrent_table.hpp index 6f5c609f..f01c5deb 100644 --- a/include/boost/unordered/detail/foa/concurrent_table.hpp +++ b/include/boost/unordered/detail/foa/concurrent_table.hpp @@ -26,7 +26,7 @@ #include #include -#if !defined(BOOST_NO_CXX17_HDR_EXECUTION) +#if defined(BOOST_UNORDERED_PARALLEL_ALGORITHMS) #include #endif @@ -197,7 +197,7 @@ class concurrent_table:concurrent_table_core_impl using is_execution_policy=std::is_execution_policy< typename std::remove_cv< @@ -287,7 +287,7 @@ public: visit_all([&](const value_type& v){f(v);}); } -#if !defined(BOOST_NO_CXX17_HDR_EXECUTION) +#if defined(BOOST_UNORDERED_PARALLEL_ALGORITHMS) template void visit_all(ExecutionPolicy&& policy,F f) { @@ -407,7 +407,7 @@ public: return super::erase_if_impl(std::forward(f)); } -#if !defined(BOOST_NO_CXX17_HDR_EXECUTION) +#if defined(BOOST_UNORDERED_PARALLEL_ALGORITHMS) template auto erase_if(ExecutionPolicy&& policy,F f)->typename std::enable_if< is_execution_policy::value,void>::type @@ -782,7 +782,7 @@ private: if(this->size_==this->ml)super::rehash(super::capacity()+1); } -#if !defined(BOOST_NO_CXX17_HDR_EXECUTION) +#if defined(BOOST_UNORDERED_PARALLEL_ALGORITHMS) template auto for_all_elements_exec(ExecutionPolicy&& policy,F f) ->decltype(f(nullptr),void())