From d9ede6489fb9d30414a67f0383a0cf6ad0ee8611 Mon Sep 17 00:00:00 2001 From: manf0001 <77053842+manf0001@users.noreply.github.com> Date: Fri, 30 Jul 2021 14:53:31 -0400 Subject: [PATCH] Update Duration.h (#158) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix error when compiling in CentOS - 7 src/shared/Utilities/Duration.h:46:30: error: missing space between ‘""’ and suffix identifier constexpr std::chrono::hours operator""_days(unsigned long long days) --- src/shared/Utilities/Duration.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/Utilities/Duration.h b/src/shared/Utilities/Duration.h index 3eab22ff..74b4dfd1 100644 --- a/src/shared/Utilities/Duration.h +++ b/src/shared/Utilities/Duration.h @@ -43,7 +43,7 @@ typedef std::chrono::hours Hours; typedef std::chrono::steady_clock::time_point TimePoint; typedef std::chrono::system_clock::time_point SystemTimePoint; -constexpr std::chrono::hours operator""_days(unsigned long long days) +constexpr std::chrono::hours operator "" _days(unsigned long long days) { return std::chrono::hours(days * Hours(24)); }