Skip to content

Commit

Permalink
removed constexpr to make old compilers happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Barbone committed May 29, 2024
1 parent c45fcf3 commit 1032480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spreadinterp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,7 @@ void add_wrapped_subgrid(BIGINT offset1, BIGINT offset2, BIGINT offset3, BIGINT
*/
{
std::vector<BIGINT> o2(size2), o3(size3);
static constexpr auto accumulate = [](FLT& a, FLT b) {
static auto accumulate = [](FLT& a, FLT b) {
if constexpr (thread_safe) { // NOLINT(*-branch-clone)
#pragma omp atomic
a += b;
Expand Down

0 comments on commit 1032480

Please sign in to comment.