Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[build] Clang-3.8: Explicit mbgl::style::expression::Result default ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoabinader committed Nov 14, 2017
1 parent 2c51901 commit 3bef759
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/mbgl/style/expression/expression.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ class Result : private variant<EvaluationError, T> {
using variant<EvaluationError, T>::variant;
using Value = T;

Result() = default;

explicit operator bool () const {
return this->template is<T>();
}
Expand Down Expand Up @@ -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))
{}
Expand Down

0 comments on commit 3bef759

Please sign in to comment.