From 13698d07c9f4e833950436f95a3e4a141d71b53b Mon Sep 17 00:00:00 2001 From: Roland Bock Date: Thu, 11 Nov 2021 07:21:28 +0100 Subject: [PATCH] Fix compile error for c++11 --- tests/mysql/usage/DateTime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/mysql/usage/DateTime.cpp b/tests/mysql/usage/DateTime.cpp index e53da8ca..8ca0402b 100644 --- a/tests/mysql/usage/DateTime.cpp +++ b/tests/mysql/usage/DateTime.cpp @@ -56,7 +56,7 @@ namespace template auto require_close(int line, const L& l, const R& r) -> void { - if (std::chrono::abs(l - r) > std::chrono::seconds{1}) + if (date::abs(l - r) > std::chrono::seconds{1}) { std::cerr << line << ": abs("; serialize(::sqlpp::wrap_operand_t{l}, std::cerr);