From: Radoslaw Zarzynski Date: Wed, 28 Feb 2018 15:18:08 +0000 (+0100) Subject: os/bluestore: drop the static_asserts due to C++14 compatibility. X-Git-Tag: v12.2.5~30^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=498257802d8fe98a0b1740c49a230a51db234539;p=ceph.git os/bluestore: drop the static_asserts due to C++14 compatibility. The `std::is_invocable` family is being available since C++17. Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/os/bluestore/bluestore_types.h b/src/os/bluestore/bluestore_types.h index 5df1d4013445..c2c0e39a089d 100644 --- a/src/os/bluestore/bluestore_types.h +++ b/src/os/bluestore/bluestore_types.h @@ -732,8 +732,6 @@ public: template int map(uint64_t x_off, uint64_t x_len, F&& f) const { - static_assert(std::is_invocable_r_v); - auto p = extents.begin(); assert(p != extents.end()); while (x_off >= p->length) { @@ -757,8 +755,6 @@ public: void map_bl(uint64_t x_off, bufferlist& bl, F&& f) const { - static_assert(std::is_invocable_v); - auto p = extents.begin(); assert(p != extents.end()); while (x_off >= p->length) {