I was implementing a function to sort different containers containting different types. I have created template as such:
template<typename Container>
void mySort(Container& container)
And it works for all the purposes I need it to, however for an argument being char[][] I want to change the implementation, so I declared template specialization as such:
template <>
void mySort<char**>(char**& container)
But my program is still using the generic implementation. What is causing this behaviour, have I made mistakes in declaring the specialization?
char**
. Show the code. A proper minimal reproducible example will belay all the banter and drive exactly to your problem. It is highly likely you template specialization doesn't match what you think it does, but that is guesswork and soothsaying. Show the code.