diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-12-20 15:01:13 -0200 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2017-01-24 11:36:59 +0200 |
commit | 9833ca8b76e9608ba9c3a8928de93b1fb9be3a45 (patch) | |
tree | d68c2d91b80a91870356e0d54039bd98a111740b /include/mbgl/util/constants.hpp | |
parent | 4dd6b704223e14762fb68b23f29ad9d644bfcc93 (diff) | |
download | qtlocation-mapboxgl-9833ca8b76e9608ba9c3a8928de93b1fb9be3a45.tar.gz |
[gcc4.9] Make constexpr usage compatible with GCC 4.9
Diffstat (limited to 'include/mbgl/util/constants.hpp')
-rw-r--r-- | include/mbgl/util/constants.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mbgl/util/constants.hpp b/include/mbgl/util/constants.hpp index 85e19c2ff0..a5a83287bc 100644 --- a/include/mbgl/util/constants.hpp +++ b/include/mbgl/util/constants.hpp @@ -2,6 +2,7 @@ #include <mbgl/util/chrono.hpp> #include <mbgl/util/unitbezier.hpp> +#include <mbgl/util/util.hpp> #include <cmath> #include <string> @@ -43,7 +44,7 @@ constexpr uint64_t DEFAULT_MAX_CACHE_SIZE = 50 * 1024 * 1024; constexpr Duration DEFAULT_FADE_DURATION = Milliseconds(300); constexpr Seconds CLOCK_SKEW_RETRY_TIMEOUT { 30 }; -constexpr UnitBezier DEFAULT_TRANSITION_EASE = { 0, 0, 0.25, 1 }; +const UnitBezier DEFAULT_TRANSITION_EASE = { 0, 0, 0.25, 1 }; constexpr int DEFAULT_RATE_LIMIT_TIMEOUT = 5; |