]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/ertr: assert on invocability of func provided to safe_then() 53958/head
authorRadosław Zarzyński <rzarzyns@redhat.com>
Wed, 26 Jul 2023 10:42:45 +0000 (12:42 +0200)
committerMatan Breizman <mbreizma@redhat.com>
Wed, 11 Oct 2023 11:47:04 +0000 (11:47 +0000)
commite0538ca63bf3b9ebb45baf1bd3e7ed2af8926f6b
treede32c8abdee6a2d7943a7a7ec10d2f5b86aef9e2
parent281a9fba66f3aef385178a4640ad8e7c35747e0c
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>
(cherry picked from commit 83687f2cc86897d60a460575a7ab2acbd2f9170c)
src/crimson/common/errorator.h