[libc-commits] [libc] [libc][NFC] Fix missing `constexpr` qualifier in `cpp::array` (PR #81862)

via libc-commits libc-commits at lists.llvm.org
Thu Feb 15 06:17:51 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Guillaume Chatelet (gchatelet)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/81862.diff


1 Files Affected:

- (modified) libc/src/__support/CPP/array.h (+1-1) 


``````````diff
diff --git a/libc/src/__support/CPP/array.h b/libc/src/__support/CPP/array.h
index 12e57489998806..1897066514092c 100644
--- a/libc/src/__support/CPP/array.h
+++ b/libc/src/__support/CPP/array.h
@@ -47,7 +47,7 @@ template <class T, size_t N> struct array {
   LIBC_INLINE constexpr const_iterator begin() const { return Data; }
 
   LIBC_INLINE constexpr iterator end() { return Data + N; }
-  LIBC_INLINE const_iterator end() const { return Data + N; }
+  LIBC_INLINE constexpr const_iterator end() const { return Data + N; }
 };
 
 } // namespace cpp

``````````

</details>


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


More information about the libc-commits mailing list