Fix template expansion errors in coral

This commit is contained in:
kayomn 2023-02-28 14:12:15 +00:00
parent d6f08efd55
commit 99fab07efa

View File

@ -50,6 +50,8 @@ export namespace coral {
using i64 = int64_t;
usize const i64_max = 0xffffffffffffffff;
using f32 = float;
using f64 = double;
@ -464,7 +466,7 @@ export namespace coral {
* Invokes the `apply` procedure if the expected is not ok, otherwise having no side-effects.
*/
void and_then(closure<void(expects &)> const & apply) {
if (this->is_ok()) apply(**this);
if (this->is_ok()) apply(*this->ok());
}
/**