]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
include/buffer: make static_assert c++11-safe
authorSage Weil <sage@redhat.com>
Tue, 30 Oct 2018 15:42:47 +0000 (10:42 -0500)
committerSage Weil <sage@redhat.com>
Tue, 30 Oct 2018 15:42:47 +0000 (10:42 -0500)
The variant with only one arg was added in c++17.

Signed-off-by: Sage Weil <sage@redhat.com>
src/include/buffer.h

index 60a5cca99520e0866729127b6b2eec5b5d0788e6..43820d42f2be753519b395f6552fe892c415d030 100644 (file)
@@ -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;