Join Nostr
2025-03-04 18:37:31 UTC

__ct__4LunaFv on Nostr: Alright, next challenge for the C++ folks, initialize a std::array<T, N> so every ...

Alright, next challenge for the C++ folks, initialize a std::array<T, N> so every element contains a given default value, but also T's default constructor has been explicitly deleted.

I know it's possible via some inscrutable template variadics, but there's gotta be a clean/idiomatic way of doing it, right?