Skip to content

Commit

Permalink
Add Result<T>
Browse files Browse the repository at this point in the history
  • Loading branch information
uchenily committed May 17, 2024
1 parent 0dfbb0d commit 5d4c7d9
Show file tree
Hide file tree
Showing 3 changed files with 2,514 additions and 0 deletions.
15 changes: 15 additions & 0 deletions uvio/common/expected.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#pragma once

#if __cplusplus <= 202002L
#include "impl/expected.hpp"
namespace uvio {
using tl::expected;
using tl::unexpected;
} // namespace uvio
#else
#include <expected>
namespace uvio {
using std::expected;
using std::unexpected;
} // namespace uvio
#endif
Loading

0 comments on commit 5d4c7d9

Please sign in to comment.