0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00

Fix compile error for c++11

This commit is contained in:
Roland Bock 2021-11-11 07:21:28 +01:00
parent 554c31dc23
commit 13698d07c9

View File

@ -56,7 +56,7 @@ namespace
template <typename L, typename R>
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>{l}, std::cerr);