diff options
author | Tor Egge <Tor.Egge@yahooinc.com> | 2023-04-26 11:54:38 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@yahooinc.com> | 2023-04-26 11:56:07 +0200 |
commit | 804ac07978a61d09f1a3e175c183365baef646b7 (patch) | |
tree | fb1992e2fd22c2e20b12a2f660dc5dde8f66a446 /searchlib | |
parent | 6953b7662a1c8a5167b2cf5bed02349c35e42812 (diff) |
Remove bad constexpr.
Diffstat (limited to 'searchlib')
-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) { |