[libcxx-commits] [libcxx] [libc++] Add [[nodiscard]] to static numeric limit functions (PR #83748)

Marc Auberer via libcxx-commits libcxx-commits at lists.llvm.org
Mon Mar 4 01:29:52 PST 2024


================
@@ -21,9 +21,9 @@ class numeric_limits
 {
 public:
     static constexpr bool is_specialized = false;
-    static constexpr T min() noexcept;
-    static constexpr T max() noexcept;
-    static constexpr T lowest() noexcept;
+    [[nodiscard]] static constexpr T min() noexcept;
+    [[nodiscard]] static constexpr T max() noexcept;
+    [[nodiscard]] static constexpr T lowest() noexcept;
----------------
marcauberer wrote:

Done, thanks.

https://github.com/llvm/llvm-project/pull/83748


More information about the libcxx-commits mailing list