From: Radoslaw Zarzynski Date: Sun, 4 Nov 2018 20:44:54 +0000 (+0100) Subject: include: buffer_raw.h uses C++11-compatible std::aligned_storage. X-Git-Tag: v14.1.0~721^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ef036c441d996817d0f028af0a96cc428a2f2a7d;p=ceph-ci.git include: buffer_raw.h uses C++11-compatible std::aligned_storage. Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/include/buffer_raw.h b/src/include/buffer_raw.h index 301e2ca99c1..217d06f3e8d 100644 --- a/src/include/buffer_raw.h +++ b/src/include/buffer_raw.h @@ -28,7 +28,8 @@ namespace ceph::buffer { public: // In the future we might want to have a slab allocator here with few // embedded slots. This would allow to avoid the "if" in dtor of ptr_node. - std::aligned_storage_t bptr_storage; + std::aligned_storage::type bptr_storage; char *data; unsigned len; std::atomic nref { 0 };