From 1d2ad781398d2a8743899eb54153998ca03ac090 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Wed, 2 Apr 2025 05:25:26 -0500 Subject: More work on hash maps. --- include/fud_result.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/fud_result.hpp') 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 #include // IWYU pragma: keep (placement new) #include -#include 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 m_data{}; enum class Discriminant : uint8_t -- cgit v1.2.3