]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Use std::conditional_t instead of lambda to select semaphore implementation
authorJonathan Wakely <jwakely@redhat.com>
Fri, 6 Jun 2025 13:16:15 +0000 (14:16 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 6 Jun 2025 19:15:07 +0000 (20:15 +0100)
commit7407891a3d7c177212c6027c1dee08bed096666b
tree2776b7e329583208bf121311acc41352c50f2293
parentd5050287acd28cbe23df527605449f514a659bba
libstdc++: Use std::conditional_t instead of lambda to select semaphore implementation

The lambda expression causes testsuite failures such as:
FAIL g++.dg/modules/xtreme-header-2_b.C -std=c++26 (test for excess errors)

libstdc++-v3/ChangeLog:

* include/bits/semaphore_base.h (_Select_semaphore_impl): Rename
to _Semaphore_impl and use std::conditional_t instead of an
immediately invoked lambda expression.
* include/std/semaphore (counting_semaphore): Adjust to use new
name.
libstdc++-v3/include/bits/semaphore_base.h
libstdc++-v3/include/std/semaphore