From dc4e2ce281dd1a33cfac5be56488a3b96131bfd5 Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Thu, 3 Feb 2022 23:45:51 +0100 Subject: [PATCH] Update Duration.h --- src/common/Utilities/Duration.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/common/Utilities/Duration.h b/src/common/Utilities/Duration.h index 22aa53c2da..43cc1b35a5 100644 --- a/src/common/Utilities/Duration.h +++ b/src/common/Utilities/Duration.h @@ -34,17 +34,17 @@ using Minutes = std::chrono::minutes; // Fix GCC for C++20 #if defined(__GNUC__) && !defined(__clang__) -/// days -using Days = std::chrono::duration<_GLIBCXX_CHRONO_INT64_T, ratio<86400>>; +/// Days shorthand typedef. (delete after start support c++20) +using Days = std::chrono::duration, Hours::period>>; -/// weeks -using Weeks = std::chrono::duration<_GLIBCXX_CHRONO_INT64_T, ratio<604800>>; +/// Weeks shorthand typedef. (delete after start support c++20) +using Weeks = std::chrono::duration, Days::period>>; -/// years -using Years = std::chrono::duration<_GLIBCXX_CHRONO_INT64_T, ratio<31556952>>; +/// Years shorthand typedef. (delete after start support c++20) +using Years = std::chrono::duration, Days::period>>; -/// months -using Months = std::chrono::duration<_GLIBCXX_CHRONO_INT64_T, ratio<2629746>>; +/// Months shorthand typedef. (delete after start support c++20) +using Months = std::chrono::duration>>; #else