class Feature{};
class IFat
{
//init feature for IFat
vector<Feature> vf;
};
class IThin
{
//init feature for IThin
vector<Feature> vf;
};
class ISlim
{
//init feature for ISlim
vector<Feature> vf;
};
void func(IFeature_Vector)
{
//accessing vf depending on IFeature_Vector passed in
}
I would like to know if there is a nice neat way to make one func that can call each instance without having to call three times for each case. I'm sorry to say this that I know this is a jurasic problem but I just can't think up a good solution while I am so much crazy for it. I hope you understand my problem. I am thankful if you could help.