I'm trying to pass object type by argument, and i couldn't find any way to do that.
this is what i've tried so far:
I'm trying to do a generic function for multiple classes (int, double etc.)
void changeObject(class this)
{
static_cast<this&>(object[0][0]).foo()
}
but I couldn't make it work, this is not for HW, but instead a project i'm work on.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…