Skip to content

Commit

Permalink
Use explicit cast to bool for MinGW-Clang 3.8
Browse files Browse the repository at this point in the history
Clang does not find the `operator bool` function. An explicit
static_cast to `bool` resolves that issue.

Refs: gh-119
Signed-off-by: Matthias Kretz <kretz@kde.org>
  • Loading branch information
mattkretz committed Apr 13, 2016
1 parent 001d213 commit 2eac10d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/maskentry.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ template<typename M> class MaskEntry

Vc_INTRINSIC bool operator!() const
{
return !operator bool();
return !static_cast<bool>(*this);
}
};

Expand Down

0 comments on commit 2eac10d

Please sign in to comment.