I have this code which I think should work, but it is not!
class base
{
std::array<uint8_t, 8> m_ID;
public:
base(std::array<uint8_t, 8> id) :m_ID(id)
{
}
}
template<char ...Ts>
class derived:base(Ts...)
{
}
class MyClass: public derived<'1','2','3','4','5','6','7','8'>
{
}
How can I do this? The idea is that I can pass the ID value from template values.
I am getting error that MyClass is not complete. (Incomplete type is not allowed)