mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-01 04:52:02 +08:00
Fix compilation on in VS 2019 in certain environments
MSVC crashes when compiling Thanks to @enricoturri1966 for reporting and fixing
This commit is contained in:
parent
1d4594ad66
commit
3277b5ee06
@ -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;
|
||||
}));
|
||||
|
Loading…
x
Reference in New Issue
Block a user