From 500207785ad8e8327a68dffe1edc8549c589e3b7 Mon Sep 17 00:00:00 2001 From: Vincent Rabaud Date: Thu, 23 May 2024 10:41:03 +0200 Subject: [PATCH] Disambiguate cv::format Otherwise, this test does not compile with C++20, which includes std::format. --- modules/calib3d/test/test_homography.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/calib3d/test/test_homography.cpp b/modules/calib3d/test/test_homography.cpp index 2ceb05f28a..6a9cdcdd72 100644 --- a/modules/calib3d/test/test_homography.cpp +++ b/modules/calib3d/test/test_homography.cpp @@ -718,12 +718,12 @@ TEST(Calib3d_Homography, not_normalized) { Mat h = findHomography(p1, p2, method); for (auto it = h.begin(); it != h.end(); ++it) { - ASSERT_FALSE(cvIsNaN(*it)) << format("method %d\nResult:\n", method) << h; + ASSERT_FALSE(cvIsNaN(*it)) << cv::format("method %d\nResult:\n", method) << h; } if (h.at(0, 0) * ref.at(0, 0) < 0) { h *= -1; } - ASSERT_LE(cv::norm(h, ref, NORM_INF), 1e-8) << format("method %d\nResult:\n", method) << h; + ASSERT_LE(cv::norm(h, ref, NORM_INF), 1e-8) << cv::format("method %d\nResult:\n", method) << h; } }