I have a situation where a function can only take "int" (can't change this) and I need it in a different situation. let me directly write the code
bool foo(int dev)
{
...
...
return true/false;
}
I need to pass :
mClassPointer->dev()mClassPointer[index]->dev()dev() //(function)- and obviously
dev //(variable)
mClassPointer is pointer to class.
dev() is a member function of a class , return an Integer.