[libcxx-commits] [libcxx] [libc++] Add [[nodiscard]] to static numeric limit functions (PR #83748)
Marc Auberer via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Mar 5 03:56:16 PST 2024
================
@@ -0,0 +1,71 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+// UNSUPPORTED: c++03, c++11, c++14, c++17
----------------
marcauberer wrote:
I think this is marked as unsupported, because `[[nodiscard]]` itself is only supported since C++17: https://en.cppreference.com/w/cpp/language/attributes/nodiscard
https://github.com/llvm/llvm-project/pull/83748
More information about the libcxx-commits
mailing list