[libcxx-commits] [libcxx] [libcxx] Implement C++20 std::chrono::is_clock, std::chrono::is_clock_v (PR #160607)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Nov 3 02:39:17 PST 2025
================
@@ -0,0 +1,28 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// REQUIRES: std-at-least-c++20
+
+#include <chrono>
+#include <ratio>
+
+#if !__has_warning("-Winvalid-specializations")
+// expected-no-diagnostics
+#else
+
+namespace std::chrono {
----------------
philnik777 wrote:
Let's avoid opening `namespace std`.
https://github.com/llvm/llvm-project/pull/160607
More information about the libcxx-commits
mailing list