From fb0b9b41ccd5b4738dc2ecd5a9db49aa0f291b8f Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Wed, 9 Nov 2016 15:48:08 +0100 Subject: [PATCH] gcc 4.8.5/centos compatibility --- src/app/FrameCounter.hpp | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/src/app/FrameCounter.hpp b/src/app/FrameCounter.hpp index 9364e2e..0b7d38f 100644 --- a/src/app/FrameCounter.hpp +++ b/src/app/FrameCounter.hpp @@ -12,12 +12,13 @@ class FrameCounter { public: template struct Frame { - T handle = T(0); - T update = T(0); - T render = T(0); - T running = T(0); - T waiting = T(0); - T total = T(0); + T handle; + T update; + T render; + T running; + T waiting; + T total; + Frame(); }; @@ -63,6 +64,18 @@ private: }; + +template +FrameCounter::Frame::Frame() +: handle(0) +, update(0) +, render(0) +, running(0) +, waiting(0) +, total(0) { + +} + } #endif -- 2.39.2