Skip to content

Commit

Permalink
os/bluestore: drop the static_asserts due to C++14 compatibility.
Browse files Browse the repository at this point in the history
The `std::is_invocable` family is being available since C++17.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
  • Loading branch information
rzarzynski committed Mar 2, 2018
1 parent 6139fd4 commit 4982578
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/os/bluestore/bluestore_types.h
Expand Up @@ -732,8 +732,6 @@ struct bluestore_blob_t {

template<class F>
int map(uint64_t x_off, uint64_t x_len, F&& f) const {
static_assert(std::is_invocable_r_v<int, F, uint64_t, uint64_t>);

auto p = extents.begin();
assert(p != extents.end());
while (x_off >= p->length) {
Expand All @@ -757,8 +755,6 @@ struct bluestore_blob_t {
void map_bl(uint64_t x_off,
bufferlist& bl,
F&& f) const {
static_assert(std::is_invocable_v<F, uint64_t, bufferlist&>);

auto p = extents.begin();
assert(p != extents.end());
while (x_off >= p->length) {
Expand Down

0 comments on commit 4982578

Please sign in to comment.