diff --git a/src/libslic3r/GCode/ConflictChecker.cpp b/src/libslic3r/GCode/ConflictChecker.cpp index 4f367f175..f8fed0efa 100644 --- a/src/libslic3r/GCode/ConflictChecker.cpp +++ b/src/libslic3r/GCode/ConflictChecker.cpp @@ -100,7 +100,7 @@ void LinesBucketQueue::emplace_back_bucket(std::vector &&paths, _pq.push(&_buckets.back()); auto newSize = _buckets.capacity(); if (oldSize != newSize) { // pointers change - std::priority_queue, LinesBucketPtrComp> newQueue; + decltype(_pq) newQueue; for (LinesBucket &bucket : _buckets) { newQueue.push(&bucket); } std::swap(_pq, newQueue); }