diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2025-01-02 15:11:51 -0600 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2025-01-02 15:11:51 -0600 |
commit | 87071200872c2450c947047350132aee493033c1 (patch) | |
tree | 49109532d9bbd148b4e59043120037684093be33 /include/fud_option.hpp | |
parent | 16379362c02a2472f00fac49cad62788547c9519 (diff) |
Get basic CSV parser operating.
Diffstat (limited to 'include/fud_option.hpp')
-rw-r--r-- | include/fud_option.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/fud_option.hpp b/include/fud_option.hpp index 3b0eb1b..af2fcd3 100644 --- a/include/fud_option.hpp +++ b/include/fud_option.hpp @@ -229,7 +229,8 @@ class Option { m_data.clear(); } - alignas(alignof(T)) option_detail::DataArray<Size> m_data{}; + static constexpr auto Align = std::max(alignof(T), alignof(std::reference_wrapper<T>)); + alignas(Align) option_detail::DataArray<Size> m_data{}; bool m_engaged; }; |