From 672a694afc15b5c356dce72224d28c99a40d3a5f Mon Sep 17 00:00:00 2001 From: "Adam C. Emerson" Date: Fri, 5 Feb 2016 11:22:55 -0500 Subject: [PATCH] time: Remove constexpr from non-literal type in test This fixes a compile error under clang and fixes another FreeBSD porting issue. Signed-off-by: Adam C. Emerson --- src/test/common/test_time.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/common/test_time.cc b/src/test/common/test_time.cc index e363085da33ad..2e6ad4bbcbd2b 100644 --- a/src/test/common/test_time.cc +++ b/src/test/common/test_time.cc @@ -56,8 +56,7 @@ static constexpr double bd = bs + ((double)bns / 1000000000.); template static void system_clock_sanity() { - static constexpr typename Clock::time_point brt(seconds(bs) - + nanoseconds(bns)); + static const typename Clock::time_point brt(seconds(bs) + nanoseconds(bns)); const typename Clock::time_point now(Clock::now()); ASSERT_GT(now, brt); -- 2.39.5