diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-10-16 22:25:08 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-10-16 22:25:08 -0500 |
commit | 53c4dcf374c66f1e9190f5a62a52d02fe11a69e6 (patch) | |
tree | ee40277c36fdba58fb06aca87b8ffa67ab5f8558 /include/fud_result.hpp | |
parent | f3ac764684c64fbdd2094853a80b23e570cd5d9c (diff) |
First crack at allocators.
Diffstat (limited to 'include/fud_result.hpp')
-rw-r--r-- | include/fud_result.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fud_result.hpp b/include/fud_result.hpp index 3acf776..5dabaf5 100644 --- a/include/fud_result.hpp +++ b/include/fud_result.hpp @@ -27,6 +27,7 @@ template <typename T, typename E> class [[nodiscard]] Result { public: using ResultType = Result<T, E>; + static ResultType okay(const T& okay) { return ResultType{okay}; |