From: Sage Weil Date: Tue, 30 Oct 2018 15:42:47 +0000 (-0500) Subject: include/buffer: make static_assert c++11-safe X-Git-Tag: v14.1.0~999^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F24835%2Fhead;p=ceph.git include/buffer: make static_assert c++11-safe The variant with only one arg was added in c++17. Signed-off-by: Sage Weil --- 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;