[libcxx-commits] [libcxx] [libc++] Improve aligned allocation support with picolibc. (PR #96086)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jul 4 11:43:58 PDT 2024


================
@@ -16,6 +16,8 @@
 #include <new>
 #include <type_traits>
 
+#include <__memory/aligned_alloc.h> // reuse aligned allocation helper
----------------
ldionne wrote:

Frankly, I would just duplicate a bit of logic. I don't think it makes sense to create a lot of complexity just to solve this one instance of code duplication.

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


More information about the libcxx-commits mailing list