diff options
author | Arne H Juul <arnej27959@users.noreply.github.com> | 2023-04-26 12:34:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 12:34:40 +0200 |
commit | a6c5b734b94d0239db9df0d37e390f82d3deabf1 (patch) | |
tree | f7cf8c55e84232b4897f0f102eecc6770b154cd1 | |
parent | 00842aaa7f10e69184c5823f8da90d70718758fa (diff) | |
parent | 804ac07978a61d09f1a3e175c183365baef646b7 (diff) |
Merge pull request #26857 from vespa-engine/toregge/remove-bad-constexpr
Remove bad constexpr.
-rw-r--r-- | searchlib/src/tests/tensor/distance_functions/distance_functions_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/tests/tensor/distance_functions/distance_functions_test.cpp b/searchlib/src/tests/tensor/distance_functions/distance_functions_test.cpp index e5bed3ebae5..600c5ae0646 100644 --- a/searchlib/src/tests/tensor/distance_functions/distance_functions_test.cpp +++ b/searchlib/src/tests/tensor/distance_functions/distance_functions_test.cpp @@ -69,7 +69,7 @@ double computeEuclideanChecked(TypedCells a, TypedCells b) { return result; } -namespace { constexpr double sq_root_half = std::sqrt(0.5); } +namespace { const double sq_root_half = std::sqrt(0.5); } TEST(DistanceFunctionsTest, euclidean_gives_expected_score) { |