This is a problem specifically with array members. Just don't use them, use
std::array
(or better std::string
in this case, as NathanOliver suggests below). Also I recommend using (...)
instead of {...}
, because the latter can break in weird ways e.g. for standard containers. And the former works for structs without custom constructors since C++20.