https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116964

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>:

https://gcc.gnu.org/g:f135278f559914c0336cd8ad0af0deac2a0c86fd

commit r15-4058-gf135278f559914c0336cd8ad0af0deac2a0c86fd
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Fri Oct 4 10:44:46 2024 +0100

    libstdc++: Replace implicit lambda capture of 'this' [PR116964]

    C++20 deprecates implicit capture of 'this', so change [=] to [this] for
    all lambda expressions in <shared_mutex>. This only shows up on targets
    where _GLIBCXX_USE_PTHREAD_RWLOCK_T is not defined, as we have an
    alternative implementation of shared mutexes in that case.

    libstdc++-v3/ChangeLog:

            PR libstdc++/116964
            * include/std/shared_mutex (__shared_mutex_cv): Use [this] for
            lambda captures.
            (shared_timed_mutex) [!_GLIBCXX_USE_PTHREAD_RWLOCK_T]: Likewise.

Reply via email to