From f780e02942f77e6b11abfef8d075aac3a9311dcc Mon Sep 17 00:00:00 2001 From: Matthias Kretz Date: Fri, 22 Apr 2016 16:32:27 +0200 Subject: [PATCH] MSVC: Use &* to force conversion to bool* 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 --- examples/test_inside/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/test_inside/main.cpp b/examples/test_inside/main.cpp index 2b7b34888..a187c33be 100644 --- a/examples/test_inside/main.cpp +++ b/examples/test_inside/main.cpp @@ -53,7 +53,7 @@ std::array contains(const PointArray &points) std::array inside; auto storeIt = inside.begin(); for (const auto &p : points) { - contains(p).store(storeIt); + contains(p).store(&*storeIt); storeIt += double_v::Size; } return inside;