Changes in src/libcfa/containers/result.c [20877d2:58daf53]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/containers/result.c
r20877d2 r58daf53 74 74 forall(otype T, otype E) 75 75 bool ?!=?(result(T, E) this, zero_t) { 76 return this.has_value;76 return !this.has_value; 77 77 } 78 78 … … 100 100 forall(otype T, otype E) 101 101 E get_error(result(T, E) * this) { 102 assertf( !this->has_value, "attempt to get from result without error");102 assertf(this->has_value, "attempt to get from result without error"); 103 103 return this->error; 104 104 }
Note:
See TracChangeset
for help on using the changeset viewer.