From ef036c441d996817d0f028af0a96cc428a2f2a7d Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Sun, 4 Nov 2018 21:44:54 +0100 Subject: [PATCH] include: buffer_raw.h uses C++11-compatible std::aligned_storage. Signed-off-by: Radoslaw Zarzynski --- src/include/buffer_raw.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }; -- 2.39.5