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