summaryrefslogtreecommitdiff
path: root/include/fud_result.hpp
diff options
context:
space:
mode:
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()) { \