From f1ac757bd28351fd57113a1e16f6c2e00ab193c1 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Tue, 11 Jul 2017 15:11:14 +0300 Subject: [core] GCC 4.9 does not fully support custom variable templates --- include/mbgl/style/conversion/function.hpp | 2 +- include/mbgl/style/function/camera_function.hpp | 2 +- include/mbgl/style/function/composite_function.hpp | 4 ++-- include/mbgl/style/function/source_function.hpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'include/mbgl/style') diff --git a/include/mbgl/style/conversion/function.hpp b/include/mbgl/style/conversion/function.hpp index bf5b27a9a6..752b6dd045 100644 --- a/include/mbgl/style/conversion/function.hpp +++ b/include/mbgl/style/conversion/function.hpp @@ -156,7 +156,7 @@ struct StopsConverter> { public: template optional> operator()(const V& value, Error& error) const { - std::string type = util::Interpolatable ? "exponential" : "interval"; + std::string type = util::Interpolatable::value ? "exponential" : "interval"; auto typeValue = objectMember(value, "type"); if (typeValue && toString(*typeValue)) { diff --git a/include/mbgl/style/function/camera_function.hpp b/include/mbgl/style/function/camera_function.hpp index 0fd5bcb078..7fde365b3d 100644 --- a/include/mbgl/style/function/camera_function.hpp +++ b/include/mbgl/style/function/camera_function.hpp @@ -12,7 +12,7 @@ template class CameraFunction { public: using Stops = std::conditional_t< - util::Interpolatable, + util::Interpolatable::value, variant< ExponentialStops, IntervalStops>, diff --git a/include/mbgl/style/function/composite_function.hpp b/include/mbgl/style/function/composite_function.hpp index 43599cd333..7b524b6021 100644 --- a/include/mbgl/style/function/composite_function.hpp +++ b/include/mbgl/style/function/composite_function.hpp @@ -24,7 +24,7 @@ template class CompositeFunction { public: using InnerStops = std::conditional_t< - util::Interpolatable, + util::Interpolatable::value, variant< ExponentialStops, IntervalStops, @@ -34,7 +34,7 @@ public: CategoricalStops>>; using Stops = std::conditional_t< - util::Interpolatable, + util::Interpolatable::value, variant< CompositeExponentialStops, CompositeIntervalStops, diff --git a/include/mbgl/style/function/source_function.hpp b/include/mbgl/style/function/source_function.hpp index 2872c63a64..9c2ad101ec 100644 --- a/include/mbgl/style/function/source_function.hpp +++ b/include/mbgl/style/function/source_function.hpp @@ -16,7 +16,7 @@ template class SourceFunction { public: using Stops = std::conditional_t< - util::Interpolatable, + util::Interpolatable::value, variant< ExponentialStops, IntervalStops, -- cgit v1.2.1