From 87071200872c2450c947047350132aee493033c1 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Thu, 2 Jan 2025 15:11:51 -0600 Subject: Get basic CSV parser operating. --- include/fud_option.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/fud_option.hpp') 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 m_data{}; + static constexpr auto Align = std::max(alignof(T), alignof(std::reference_wrapper)); + alignas(Align) option_detail::DataArray m_data{}; bool m_engaged; }; -- cgit v1.2.3