I have a template class whose method I am trying to specialize based on the typename in class. A skeleton of the code is as follows:
template <typename C> class Instance {
protected:
C data;
public:
void populateData();
/* want to change the behavior of populateData() depending on C */
};
How do I achieve the above stated goal?