Skip to content

Commit

Permalink
MSVC: Use &* to force conversion to bool*
Browse files Browse the repository at this point in the history
std::array iterators don't have to implicitly convert to bool*.
Apparently the lib(std)c++ implementations use a bool* as iterator.

Refs: gh-119
Signed-off-by: Matthias Kretz <kretz@kde.org>
  • Loading branch information
mattkretz committed Sep 20, 2016
1 parent f982238 commit f780e02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/test_inside/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ std::array<bool, ArraySize> contains(const PointArray &points)
std::array<bool, ArraySize> inside;
auto storeIt = inside.begin();
for (const auto &p : points) {
contains(p).store(storeIt);
contains(p).store(&*storeIt);
storeIt += double_v::Size;
}
return inside;
Expand Down

0 comments on commit f780e02

Please sign in to comment.