summaryrefslogtreecommitdiff
path: root/include/fud_result.hpp
diff options
context:
space:
mode:
authorDominick Allen <djallen@librehumanitas.org>2024-10-29 10:28:11 -0500
committerDominick Allen <djallen@librehumanitas.org>2024-10-29 10:28:11 -0500
commitf281050ddb3b9d658cff67a254eedc3b79de5c5d (patch)
tree62c8673ca990a1df6169d08435924a69cc0b24b2 /include/fud_result.hpp
parent24cd7c8896b2091114e89ffda06b5c63eb2827c7 (diff)
Reduce string size, adopt clang-style SSO.
Diffstat (limited to 'include/fud_result.hpp')
-rw-r--r--include/fud_result.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/fud_result.hpp b/include/fud_result.hpp
index 95f3e5c..497b007 100644
--- a/include/fud_result.hpp
+++ b/include/fud_result.hpp
@@ -18,8 +18,8 @@
#ifndef FUD_RESULT_HPP
#define FUD_RESULT_HPP
-#include <variant>
#include <utility>
+#include <variant>
namespace fud {
@@ -159,7 +159,7 @@ class [[nodiscard]] Result {
std::variant<T, E> m_value;
};
-#define M_TakeOrReturn(HYGIENE_EXPRESSION) \
+#define M_TakeOrReturn(HYGIENE_EXPRESSION) \
({ \
auto HYGIENE_RESULT{(HYGIENE_EXPRESSION)}; \
if (HYGIENE_RESULT.isError()) { \