diff options
Diffstat (limited to 'include/mbgl/style/function/interval_stops.hpp')
-rw-r--r-- | include/mbgl/style/function/interval_stops.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/mbgl/style/function/interval_stops.hpp b/include/mbgl/style/function/interval_stops.hpp index cf879d730b..50f2b48453 100644 --- a/include/mbgl/style/function/interval_stops.hpp +++ b/include/mbgl/style/function/interval_stops.hpp @@ -18,15 +18,15 @@ public: : stops(std::move(stops_)) { } - T evaluate(const Value& value) const { + optional<T> evaluate(const Value& value) const { if (stops.empty()) { assert(false); - return T(); + return {}; } optional<float> z = numericValue<float>(value); if (!z) { - return T(); + return {}; } auto it = stops.upper_bound(*z); |