From a1ac243b81eed08f2a4dba640f660281bff83249 Mon Sep 17 00:00:00 2001 From: Roberto Rossini <71787608+robomics@users.noreply.github.com> Date: Mon, 11 Nov 2024 19:43:00 +0100 Subject: [PATCH] Fix macOS builds --- src/nchg/cartesian_product/cartesian_product.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/nchg/cartesian_product/cartesian_product.cpp b/src/nchg/cartesian_product/cartesian_product.cpp index 16b22fc..a9acd5a 100644 --- a/src/nchg/cartesian_product/cartesian_product.cpp +++ b/src/nchg/cartesian_product/cartesian_product.cpp @@ -322,7 +322,11 @@ struct ChromIndex { break; } } +#if defined(__apple_build_version__) && __apple_build_version__ < 16000000 + index.emplace_back(ChromIndex{chrom, i0, i1}); +#else index.emplace_back(chrom, i0, i1); +#endif i = i1; }