What type should I use to it compile for s
parameter in the constructor? I tried unsigned char s[32]
and unsigned char *s
but both give compiler error:
array initializer must be an initializer list or string literal
struct foo
{
size_t a;
size_t b;
unsigned char c[32];
constexpr foo(size_t a_, size_t b_, ??? s) :
a(a_),
b(b_),
c(s)
{
}
}