[libc++] Use this in lamba capture in <latch>
authorEdoardo Sanguineti <edoardo.sanguineti222@gmail.com>
Tue, 4 Jul 2023 18:42:44 +0000 (20:42 +0200)
committerMark de Wever <koraq@xs4all.nl>
Tue, 4 Jul 2023 18:43:56 +0000 (20:43 +0200)
commit0529025648b5e119ea75a06c6819d0f135efe0eb
treeadda9051fbeaeba4ca2dbe3dc625e35e728c01d1
parenta4bc96d38aa7fe7aade29982b06de8c9d94da8bd
[libc++] Use this in lamba capture in <latch>

"&" seemed to be used in a situation where perhaps it's not the best option.
Other libc++ modules make use of [this] when calling functions from the same class.
[this] would be the appropriate lambda capture specifier to use in this situation.

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D154358
libcxx/include/latch