diff --git a/src/libslic3r/GCode/ConflictChecker.cpp b/src/libslic3r/GCode/ConflictChecker.cpp index f8fed0efa..4f367f175 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 - decltype(_pq) newQueue; + std::priority_queue, LinesBucketPtrComp> newQueue; for (LinesBucket &bucket : _buckets) { newQueue.push(&bucket); } std::swap(_pq, newQueue); }