Fix template expansion errors in coral
This commit is contained in:
parent
d6f08efd55
commit
99fab07efa
@ -50,6 +50,8 @@ export namespace coral {
|
|||||||
|
|
||||||
using i64 = int64_t;
|
using i64 = int64_t;
|
||||||
|
|
||||||
|
usize const i64_max = 0xffffffffffffffff;
|
||||||
|
|
||||||
using f32 = float;
|
using f32 = float;
|
||||||
|
|
||||||
using f64 = double;
|
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.
|
* Invokes the `apply` procedure if the expected is not ok, otherwise having no side-effects.
|
||||||
*/
|
*/
|
||||||
void and_then(closure<void(expects &)> const & apply) {
|
void and_then(closure<void(expects &)> const & apply) {
|
||||||
if (this->is_ok()) apply(**this);
|
if (this->is_ok()) apply(*this->ok());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user