Update Duration.h (#158)
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)
This commit is contained in:
parent
8b37b0e40e
commit
d9ede6489f
@ -43,7 +43,7 @@ typedef std::chrono::hours Hours;
|
|||||||
typedef std::chrono::steady_clock::time_point TimePoint;
|
typedef std::chrono::steady_clock::time_point TimePoint;
|
||||||
typedef std::chrono::system_clock::time_point SystemTimePoint;
|
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));
|
return std::chrono::hours(days * Hours(24));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user