diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2025-04-02 05:25:26 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2025-04-02 05:25:26 -0500 |
commit | 1d2ad781398d2a8743899eb54153998ca03ac090 (patch) | |
tree | c935ffe2880b7101d2d9162a76c8bed5be931ebb /include/fud_result.hpp | |
parent | 8b0bc70db73b48d833a3b5791e55921768cf6932 (diff) |
More work on hash maps.
Diffstat (limited to 'include/fud_result.hpp')
-rw-r--r-- | include/fud_result.hpp | 6 |
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 |