[libcxx-commits] [libcxx] [libc++] Refactor __next_prime to be const (PR #157421)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Sep 9 05:18:49 PDT 2025


================
@@ -446,4 +436,6 @@ size_t __next_prime(size_t n) {
   }
 }
 
+_LIBCPP_EXPORTED_FROM_ABI size_t __next_prime(size_t n) { return __get_next_prime(n); }
----------------
ldionne wrote:

We should add a comment explaining that this is only provided for backwards compatibility.

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


More information about the libcxx-commits mailing list