This is probably easy for you but I am not really into references yet. I cannot see why this would not work. Please show me the correct style.
template <typename T>
void shuffle(T (&array)[], size_t len){};
And I try to call it like this:
uint_fast8_t dirBag[4]
Random::shuffle(dirBag, sizeof(dirBag)/sizeof(decltype(dirBag[0])));
The error is:
Error 1 error C2784: 'void Random::shuffle(T (&)[],size_t)' : could not deduce template argument for 'T (&)[]' from 'uint_fast8_t [4]'