We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a26981 commit acf6c99Copy full SHA for acf6c99
include/beman/monadics/detail/or_else.hpp
@@ -32,6 +32,7 @@ class or_else_t {
32
{
33
using Traits = get_box_traits<Box>;
34
using NewBox = decltype(invoke_with_error(std::forward<Op>(op).callable(key), std::forward<Box>(box)));
35
+
36
if (!Traits::has_value(box)) {
37
return invoke_with_error(std::forward<Op>(op).callable(key), std::forward<Box>(box));
38
}
0 commit comments