Fix: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20

Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
This commit is contained in:
Matt Liberty 2026-01-11 01:34:48 +00:00
parent 94dc4a04c6
commit 638c03a1c9
1 changed files with 2 additions and 1 deletions

View File

@ -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) {