Relaxed constexpr usage in RewindManager, so code compiles in Linux and OSX.

- the code was using C++17 features, and we only support C++14 for now
This commit is contained in:
Stephen Anthony 2017-12-14 19:46:37 -03:30
parent 418b0f07ae
commit fd5c026034
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ class RewindManager
public: public:
static constexpr int NUM_INTERVALS = 7; static constexpr int NUM_INTERVALS = 7;
// cycle values for the intervals // cycle values for the intervals
static constexpr uInt32 INTERVAL_CYCLES[NUM_INTERVALS] = { const uInt32 INTERVAL_CYCLES[NUM_INTERVALS] = {
76 * 262, 76 * 262,
76 * 262 * 3, 76 * 262 * 3,
76 * 262 * 10, 76 * 262 * 10,
@ -70,7 +70,7 @@ class RewindManager
static constexpr int NUM_HORIZONS = 8; static constexpr int NUM_HORIZONS = 8;
// cycle values for the horzions // cycle values for the horzions
static constexpr uInt64 HORIZON_CYCLES[NUM_HORIZONS] = { const uInt64 HORIZON_CYCLES[NUM_HORIZONS] = {
76 * 262 * 60 * 3, 76 * 262 * 60 * 3,
76 * 262 * 60 * 10, 76 * 262 * 60 * 10,
76 * 262 * 60 * 30, 76 * 262 * 60 * 30,