Skip to content

Commit

Permalink
Drop amalgamate tag
Browse files Browse the repository at this point in the history
  • Loading branch information
alugowski committed Dec 18, 2023
1 parent 48a9370 commit 8a01244
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
9 changes: 4 additions & 5 deletions tests/supplement_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@
#define POOLSTL_STD_SUPPLEMENT
#include <poolstl/poolstl.hpp>

#ifndef POOLSTL_AMALGAM
// Test poolstl::variant_policy.
// Not bundled with the amalgam.
#if __has_include(<poolstl/variant_policy.hpp>)
// Test poolstl::variant_policy (independent header, not bundled with the amalgam).
#include <poolstl/variant_policy.hpp>
using std_policy_variant = std::variant<std::execution::parallel_policy, std::execution::sequenced_policy>;

/**
* A version of poolstl::par_if that works on the std execution policies.
* A version of poolstl::par_if that works on the std::execution policies.
*/
poolstl::variant_policy<std_policy_variant> std_par_if(bool call_par) {
if (call_par) {
Expand Down Expand Up @@ -62,7 +61,7 @@ int main() {
});
std::cout << " std::execution::par_unseq" << std::endl;

#ifndef POOLSTL_AMALGAM
#if __has_include(<poolstl/variant_policy.hpp>)
for (bool is_parallel : {true, false}) {
std::for_each(std_par_if(is_parallel), v.cbegin(), v.cend(), [](int x) {
std::cout << x;
Expand Down
3 changes: 0 additions & 3 deletions tools/amalgamate_header.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,3 @@
* DEALINGS IN THE SOFTWARE.
*/

#ifndef POOLSTL_AMALGAM
#define POOLSTL_AMALGAM
#endif

0 comments on commit 8a01244

Please sign in to comment.