mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-18 21:23:02 +00:00
Do not capture by reference in inner_product lambda
This commit is contained in:
parent
e652b2335d
commit
c4652c4593
@ -107,9 +107,9 @@ void bm_inner_product(benchmark::State& state)
|
||||
#if COMPILER_HAS_STD_PLUS_VOID
|
||||
std::plus<>(),
|
||||
#else
|
||||
std::plus<float>(),
|
||||
std::plus<int32_t>(),
|
||||
#endif
|
||||
[&](float a, float b) { return (std::signbit(a) ? -b : b); });
|
||||
[](float a, int32_t b) { return (std::signbit(a) ? -b : b); });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -95,9 +95,9 @@ TEST(PreambleCorrelationTest, TestMethods)
|
||||
#if COMPILER_HAS_STD_PLUS_VOID
|
||||
std::plus<>(),
|
||||
#else
|
||||
std::plus<float>(),
|
||||
std::plus<int32_t>(),
|
||||
#endif
|
||||
[&](float a, float b) { return (std::signbit(a) ? -b : b); });
|
||||
[](float a, int32_t b) { return (std::signbit(a) ? -b : b); });
|
||||
sum_corr3 += corr_value3;
|
||||
}
|
||||
end3 = std::chrono::system_clock::now();
|
||||
|
Loading…
Reference in New Issue
Block a user