From 220ec2b9e9bb26a4daa627152e78dbce8fdf755c Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 30 Oct 2018 10:42:47 -0500 Subject: [PATCH] include/buffer: make static_assert c++11-safe The variant with only one arg was added in c++17. Signed-off-by: Sage Weil --- src/include/buffer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/include/buffer.h b/src/include/buffer.h index 60a5cca99520..43820d42f2be 100644 --- a/src/include/buffer.h +++ b/src/include/buffer.h @@ -654,7 +654,8 @@ namespace buffer CEPH_BUFFER_API { }; // The contiguous_filler is supposed to be not costlier than a single // pointer. Keep it dumb, please. - static_assert(sizeof(contiguous_filler) == sizeof(char*)); + static_assert(sizeof(contiguous_filler) == sizeof(char*), + "contiguous_filler should be no costlier than pointer"); class page_aligned_appender { bufferlist *pbl; -- 2.47.3