From e14f03815bb3485bb5ea795adb2c895853b3d1b8 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Sun, 22 Jul 2018 21:56:40 +0000 Subject: [PATCH] Workaround bug in GCC trunk. For some reason GCC ToT is failing to deduce the auto type for a static data member from its initializer in some cases. Though I'm sure the bug will be short lived, there is a trivial workaround for it. So we might as well get the bot passing again. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@337661 91177308-0d34-0410-b5e6-96231b3b80d8 --- src/experimental/filesystem/filesystem_common.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/experimental/filesystem/filesystem_common.h b/src/experimental/filesystem/filesystem_common.h index 0dd6e9ee4..187428309 100644 --- a/src/experimental/filesystem/filesystem_common.h +++ b/src/experimental/filesystem/filesystem_common.h @@ -94,18 +94,18 @@ using namespace chrono; template ::value> struct fs_time_util_base { - static constexpr auto max_seconds = + static constexpr seconds::rep max_seconds = duration_cast(FileTimeT::duration::max()).count(); - static constexpr auto max_nsec = + static constexpr nanoseconds::rep max_nsec = duration_cast(FileTimeT::duration::max() - seconds(max_seconds)) .count(); - static constexpr auto min_seconds = + static constexpr seconds::rep min_seconds = duration_cast(FileTimeT::duration::min()).count(); - static constexpr auto min_nsec_timespec = + static constexpr nanoseconds::rep min_nsec_timespec = duration_cast( (FileTimeT::duration::min() - seconds(min_seconds)) + seconds(1)) .count();