c++ - Function specialization with array argument -


this question has answer here:

is possible specialize function specific array type?

for example having template function:

template <typename t, size_t size> void process(t (&arr)[size]) {     // smth } 

could function specialization t=uint8_t done in such case? or reasonable solution here use overload 1 below?

template <size_t size> void process(uint8_t (&arr)[size]) {     // smth else } 

thanks suggestions , comments.

it not possible specialize function templates partially, have use separate overload.


Comments