diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-10-29 10:28:11 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-10-29 10:28:11 -0500 |
commit | f281050ddb3b9d658cff67a254eedc3b79de5c5d (patch) | |
tree | 62c8673ca990a1df6169d08435924a69cc0b24b2 /include/fud_result.hpp | |
parent | 24cd7c8896b2091114e89ffda06b5c63eb2827c7 (diff) |
Reduce string size, adopt clang-style SSO.
Diffstat (limited to 'include/fud_result.hpp')
-rw-r--r-- | include/fud_result.hpp | 4 |
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()) { \ |