From 804ac07978a61d09f1a3e175c183365baef646b7 Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Wed, 26 Apr 2023 11:54:38 +0200 Subject: Remove bad constexpr. --- .../src/tests/tensor/distance_functions/distance_functions_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3