I have this code:
template<char ...T>
class base
{
std::array<uint8_t, ID_SIZE> m_ID = { Ts... };
}
template<char ...T>
class derived: public base<T>
{
// this class doesn;t need to know anything about T
}
when I compile this code, I am getting this error:
'T': parameter pack must be expanded in this context
What is this error and how i can fix it?
class derived: public base<T...>baseclass (or in thederivedclass for that matter)? Have you tried something like that?