[libcxx-commits] [PATCH] D140259: [libc++] Add __small_buffer

Mark de Wever via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Dec 20 08:19:20 PST 2022


Mordante added a comment.

I mainly glossed over it to see what it does.



================
Comment at: libcxx/include/__utility/small_buffer.h:35
+  static_assert(_BufferSize > 0, "The buffer size should not be zero");
+  static_assert(_BufferAlignment > 0, "The buffer alignment should not be zero");
+
----------------
Small nit, since this is C++23, this could be a requires instead of a `static_assert`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D140259/new/

https://reviews.llvm.org/D140259



More information about the libcxx-commits mailing list