]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/ertr: assert on invocability of func provided to safe_then() 52655/head
authorRadosław Zarzyński <rzarzyns@redhat.com>
Wed, 26 Jul 2023 10:42:45 +0000 (12:42 +0200)
committerRadosław Zarzyński <rzarzyns@redhat.com>
Wed, 26 Jul 2023 10:47:04 +0000 (12:47 +0200)
commit83687f2cc86897d60a460575a7ab2acbd2f9170c
tree01acbc81a4aac411c8c9948a5d4bf91deaf5a754
parent3fbfd18fe96adfc57eedb9601cb9dd05013d0d81
crimson/ertr: assert on invocability of func provided to safe_then()

The goal is to fail with an easier-to-understand error on failed
`static_assert()` than cryptic template substitution errors when
the function provided to e.g. `safe_then()` doesn't match the type
carried within an errorated future.

Signed-off-by: Radosław Zarzyński <rzarzyns@redhat.com>
src/crimson/common/errorator.h