From d5bb4ddf6ea7d10d63db829c653f02532fa9600b Mon Sep 17 00:00:00 2001 From: ITHelpDec <34002836+ITHelpDec@users.noreply.github.com> Date: Sat, 29 Apr 2023 16:32:11 +0300 Subject: [PATCH] `latch` -> `std::latch` std::vector and std::future declared explciity with std:: feels sensible to remain consistent with namespace --- listings/listing_4.25.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/listings/listing_4.25.cpp b/listings/listing_4.25.cpp index 5ef25e5..291ac5c 100644 --- a/listings/listing_4.25.cpp +++ b/listings/listing_4.25.cpp @@ -1,6 +1,6 @@ void foo(){ unsigned const thread_count=...; - latch done(thread_count); + std::latch done(thread_count); my_data data[thread_count]; std::vector > threads; for(unsigned i=0;i