|
212 | 212 | #define FALLTHROUGH [[fallthrough]] |
213 | 213 |
|
214 | 214 | /// C++17 (partial) |
215 | | -#if defined(HAVE_EXECUTION) |
216 | | - #include <execution> |
217 | | - #define std_any_of(p, b, e, l) std::any_of((p), (b), (e), (l)) |
218 | | - #define std_all_of(p, b, e, l) std::all_of((p), (b), (e), (l)) |
219 | | - #define std_for_each(p, b, e, l) std::for_each((p), (b), (e), (l)) |
220 | | - #define std_reduce(p, b, e, i, l) std::reduce((p), (b), (e), (i), (l)) |
221 | | - #define std_transform(p, b, e, t, l) std::transform((p), (b), (e), (t), (l)) |
222 | | -#else |
223 | | - #include <bitcoin/system/execution.hpp> |
224 | | - #define std_any_of(p, b, e, l) std::any_of((b), (e), (l)) |
225 | | - #define std_all_of(p, b, e, l) std::all_of((b), (e), (l)) |
226 | | - #define std_for_each(p, b, e, l) std::for_each((b), (e), (l)) |
227 | | - #define std_reduce(p, b, e, i, l) std::reduce((b), (e), (i), (l)) |
228 | | - #define std_transform(p, b, e, t, l) std::transform((b), (e), (t), (l)) |
229 | | -#endif |
| 215 | +/// None on xcode. |
| 216 | +/// Requires link with -ltbb on gcc (v9). |
| 217 | +/// Experimental on clang (libcxx.llvm.org/Status/PSTL.html), requires: |
| 218 | +/// -fexperimental-library |
| 219 | +/// using poolstl, do not include <execution>. |
| 220 | +#include <bitcoin/system/execution.hpp> |
230 | 221 |
|
231 | 222 | /// C++20 (partial) |
232 | 223 | #if defined(HAVE_CONSTEVAL) |
|
0 commit comments