Fix: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
This commit is contained in:
parent
94dc4a04c6
commit
638c03a1c9
|
|
@ -1,3 +1,4 @@
|
|||
|
||||
// OpenSTA, Static Timing Analyzer
|
||||
// Copyright (c) 2025, Parallax Software, Inc.
|
||||
//
|
||||
|
|
@ -203,7 +204,7 @@ BfsIterator::visitParallel(Level to_level,
|
|||
for (size_t k = 0; k < thread_count; k++) {
|
||||
// Last thread gets the left overs.
|
||||
size_t to = (k == thread_count - 1) ? vertex_count : from + chunk_size;
|
||||
dispatch_queue_->dispatch( [=](int) {
|
||||
dispatch_queue_->dispatch( [=, this](int) {
|
||||
for (size_t i = from; i < to; i++) {
|
||||
Vertex *vertex = level_vertices[i];
|
||||
if (vertex) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue