I think the the fwd version of just_with_default may be requiring a wrong bind count, because the following fails to compile:
auto o = fplus::maybe<int>(1);
auto p = fwd::apply(
o,
fwd::and_then_maybe([](auto x) { return x > 0 ? fplus::just(1) : fplus::nothing<int>(); }),
fwd::lift_maybe([](auto x) { return x * 2; }),
fwd::just_with_default(42)
);
Setting fwd bind count: 1 for the function and regenerating fixes the issue.
I think the the fwd version of
just_with_default
may be requiring a wrong bind count, because the following fails to compile:Setting
fwd bind count: 1
for the function and regenerating fixes the issue.