From 3277b5ee061ffa2a0117d18da446ab43d0722179 Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Thu, 17 Aug 2023 19:29:16 +0200 Subject: [PATCH] Fix compilation on in VS 2019 in certain environments MSVC crashes when compiling Thanks to @enricoturri1966 for reporting and fixing --- tests/arrange/test_arrange.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/arrange/test_arrange.cpp b/tests/arrange/test_arrange.cpp index 0304a29db9..56bba72a53 100644 --- a/tests/arrange/test_arrange.cpp +++ b/tests/arrange/test_arrange.cpp @@ -760,7 +760,7 @@ TEST_CASE("First fit selection strategy", "[arrange2]") THEN("The item should be left unpacked") { - REQUIRE(std::all_of(items.begin(), items.end(), [](auto &itm) { + REQUIRE(std::all_of(items.begin(), items.end(), [](const ArrItem &itm) { return !Slic3r::arr2::is_arranged(itm); })); } @@ -878,7 +878,7 @@ TEST_CASE("First fit selection strategy", "[arrange2]") THEN("all items should fit onto the beds from index 0 to 4") { - REQUIRE(std::all_of(items.begin(), items.end(), [](auto &itm) { + REQUIRE(std::all_of(items.begin(), items.end(), [](const ArrItem &itm) { auto bed_idx = Slic3r::arr2::get_bed_index(itm); return bed_idx >= 0 && bed_idx < Count / Capacity; }));