]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: avoid using std::aligned_storage_t 64042/head
authorKefu Chai <tchaikov@gmail.com>
Thu, 19 Jun 2025 10:04:05 +0000 (18:04 +0800)
committerKefu Chai <tchaikov@gmail.com>
Thu, 19 Jun 2025 10:09:50 +0000 (18:09 +0800)
commit4ecf0a8d1fc045f779a7319307f3118e06dfea82
treeaf26c9b3c645e5e70a8b7b3466deb1b399c69b2b
parent0c95e42ecfe46e4d35777dbe0fb23cbc00804eb3
rgw: avoid using std::aligned_storage_t

std::aligned_storage_t was deprecated in C++23, to be prepared for it,
let's use alignas for the same behavior. because the 3 * 8 (with LP64
data model) is not power-of-2, while `alignas()` requires an alignment
of power of 2. so we use `std::bit_ceil()` to calculate the minimum
alignment greater or equal to this number.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/rgw/rgw_aio.h