Merge swapping

This commit is contained in:
Simon Brand
2019-04-26 13:44:27 +01:00
parent 57a8670798
commit 3674ba5295
9 changed files with 2579 additions and 2299 deletions
+3 -2
View File
@@ -3,7 +3,8 @@
tl::expected<int, const char*> maybe_do_something(int i) {
if (i < 5) {
return 0;
} else {
}
else {
return tl::make_unexpected("Uh oh");
}
}
@@ -12,4 +13,4 @@ int main(int argc, char** argv) {
(void)argv;
return maybe_do_something(0).value_or(-1);
}
}