summaryrefslogtreecommitdiff
path: root/include/mbgl/style/expression/expression.hpp
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2017-11-14 19:03:36 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2017-11-14 19:03:52 +0200
commit572822c8ca15be190b43afbf7f91d132e988bf21 (patch)
treec24dab79ac4f778769e7025155aa7790ced81d4e /include/mbgl/style/expression/expression.hpp
parent82812ea533ad57ace2eb49edecffd88be5d97614 (diff)
downloadqtlocation-mapboxgl-572822c8ca15be190b43afbf7f91d132e988bf21.tar.gz
Bump Mapbox GL Native
mapbox-gl-native @ 3bef7593a64a51e86dd5a2ed9fd36b4a143350b0
Diffstat (limited to 'include/mbgl/style/expression/expression.hpp')
-rw-r--r--include/mbgl/style/expression/expression.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mbgl/style/expression/expression.hpp b/include/mbgl/style/expression/expression.hpp
index 1954d8b090..a22fc28724 100644
--- a/include/mbgl/style/expression/expression.hpp
+++ b/include/mbgl/style/expression/expression.hpp
@@ -44,6 +44,8 @@ public:
using variant<EvaluationError, T>::variant;
using Value = T;
+ Result() = default;
+
explicit operator bool () const {
return this->template is<T>();
}
@@ -80,6 +82,8 @@ class EvaluationResult : public Result<Value> {
public:
using Result::Result; // NOLINT
+ EvaluationResult() = default;
+
EvaluationResult(const std::array<double, 4>& arr) :
Result(toExpressionValue(arr))
{}