From 3d7878bafc228877c77891a8985e78c21f780664 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Thu, 21 Feb 2019 15:25:26 +0000 Subject: [PATCH] hopefully fix build with VS 2012 --- src/util/stopwatch.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/stopwatch.h b/src/util/stopwatch.h index e35380153..e8665054b 100644 --- a/src/util/stopwatch.h +++ b/src/util/stopwatch.h @@ -31,7 +31,8 @@ class stopwatch bool m_running = false; #endif - static std::chrono::time_point get() { + // FIXME: just use auto with VS 2015+ + static decltype(std::chrono::steady_clock::now()) get() { return std::chrono::steady_clock::now(); }