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.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/fud_result.hpp b/include/fud_result.hpp
index 0394156..4e08323 100644
--- a/include/fud_result.hpp
+++ b/include/fud_result.hpp
@@ -18,6 +18,7 @@
#ifndef FUD_RESULT_HPP
#define FUD_RESULT_HPP
+#include "fud_algorithm_no_dep.hpp"
#include "fud_assert.hpp"
#include "fud_option.hpp"
#include "fud_status.hpp"
@@ -25,7 +26,6 @@
#include <cstdint>
#include <new> // IWYU pragma: keep (placement new)
#include <type_traits>
-#include <utility>
namespace fud {
@@ -307,8 +307,8 @@ class [[nodiscard]] Result {
}
}
- static constexpr auto Size = std::max(sizeof(T), sizeof(E));
- static constexpr auto Align = std::max(alignof(T), alignof(E));
+ static constexpr auto Size = max(sizeof(T), sizeof(E));
+ static constexpr auto Align = max(alignof(T), alignof(E));
alignas(Align) option_detail::DataArray<Size> m_data{};
enum class Discriminant : uint8_t