From 1f46b90f9cbd6fcf27f914dd47b96751f4f268a2 Mon Sep 17 00:00:00 2001 From: Atlante45 Date: Mon, 14 Sep 2015 18:39:31 +0200 Subject: [PATCH] Remove constexpr for windows --- assignment-client/src/assets/AssetServer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assignment-client/src/assets/AssetServer.cpp b/assignment-client/src/assets/AssetServer.cpp index a8497953b9..b8cf6b2e01 100644 --- a/assignment-client/src/assets/AssetServer.cpp +++ b/assignment-client/src/assets/AssetServer.cpp @@ -173,8 +173,8 @@ void AssetServer::sendStatsPacket() { auto endTimeMs = std::chrono::duration_cast(stat.second.endTime); QDateTime date = QDateTime::fromMSecsSinceEpoch(endTimeMs.count()); - constexpr static const float USEC_PER_SEC = 1000000.0f; - constexpr static const float MEGABITS_PER_BYTE = 8.0f / 1000000.0f; // Bytes => Mbits + static const float USEC_PER_SEC = 1000000.0f; + static const float MEGABITS_PER_BYTE = 8.0f / 1000000.0f; // Bytes => Mbits float elapsed = (float)(stat.second.endTime - stat.second.startTime).count() / USEC_PER_SEC; // sec float megabitsPerSecPerByte = MEGABITS_PER_BYTE / elapsed; // Bytes => Mb/s