Compile more code with C++23

Bug: 388070065
Change-Id: I4b3c61807e7df8095374436675b594b2378335f7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7269450
Reviewed-by: Nico Weber <thakis@chromium.org>
Auto-Submit: Victor Vianna <victorvianna@google.com>
Cr-Commit-Position: refs/heads/main@{#1561057}
NOKEYCHECK=True
GitOrigin-RevId: e6cad244684de1cf3a59df1641489b30acb4b3d1
diff --git a/bootstrap/libc++.ninja b/bootstrap/libc++.ninja
index 7577d94..72f2499 100644
--- a/bootstrap/libc++.ninja
+++ b/bootstrap/libc++.ninja
@@ -7,7 +7,7 @@
 
 defines = -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FILE_OFFSET_BITS=64
 includes = -isystem$root/buildtools/third_party/libc++ -isystem$root/$libcxx/../include -isystem$root/$libcxx -isystem$root/$libcxxabi/../include -isystem$root/$libc
-cflags = $cxxflags $defines $includes -O2 -g0 -pthread -pipe -fno-exceptions -std=c++20 -Wno-c++11-narrowing -nostdinc++ -fPIC
+cflags = $cxxflags $defines $includes -O2 -g0 -pthread -pipe -fno-exceptions -std=c++23 -Wno-c++11-narrowing -nostdinc++ -fPIC
 
 rule cxx_libcxx
   command = $cxx $cflags -D_LIBCPP_NO_EXCEPTIONS -D_LIBCPP_BUILDING_LIBRARY -DLIBCXX_BUILDING_LIBCXXABI -c $in -o $out