First cut at Conanfile and Conan package test. (#50)

This commit is contained in:
David Yip
2019-03-01 09:51:12 +00:00
committed by Simon Brand
parent 815238795a
commit 5b58506abd
4 changed files with 88 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#include <tl/expected.hpp>
tl::expected<int, const char*> maybe_do_something(int i) {
if (i < 5) {
return 0;
} else {
return tl::make_unexpected("Uh oh");
}
}
int main(int argc, char** argv) {
(void)argv;
return maybe_do_something(0).value_or(-1);
}