summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2017-11-14 16:58:27 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2017-11-14 19:01:04 +0200
commit3bef7593a64a51e86dd5a2ed9fd36b4a143350b0 (patch)
treeea26511029e0d130b65f505c7f16f187032ce11c
parent2c519014006e4fd0cfa6ef1e4e9a05a10162db1e (diff)
downloadqtlocation-mapboxgl-3bef7593a64a51e86dd5a2ed9fd36b4a143350b0.tar.gz
[build] Clang-3.8: Explicit mbgl::style::expression::Result default ctor
-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))
{}