diff --git a/repos/base/include/util/attempt.h b/repos/base/include/util/attempt.h index d1252efd3d..3d24734b9d 100644 --- a/repos/base/include/util/attempt.h +++ b/repos/base/include/util/attempt.h @@ -53,20 +53,20 @@ class Genode::Attempt Attempt &operator = (Attempt const &) = default; template - RET convert(ACCESS_FN const &access_fn, FAIL_FN const fail_fn) const + RET convert(ACCESS_FN const &access_fn, FAIL_FN const &fail_fn) const { return _ok ? RET { access_fn(_result) } : RET { fail_fn(_error) }; } template - void with_result(ACCESS_FN const &access_fn, FAIL_FN const fail_fn) const + void with_result(ACCESS_FN const &access_fn, FAIL_FN const &fail_fn) const { _ok ? access_fn(_result) : fail_fn(_error); } template - void with_error(FAIL_FN const fail_fn) const + void with_error(FAIL_FN const &fail_fn) const { if (!_ok) fail_fn(_error);