I'm not sure how to put this into words... so how would you go about doing this:
Thanks!Code:struct TEST;
{
operator+ ( int ) { /* ... */ };
/* More members here*/
};
int main()
{
TEST* test = new TEST;
test->+ 12; // NEED HELP HERE!!
}
Printable View
I'm not sure how to put this into words... so how would you go about doing this:
Thanks!Code:struct TEST;
{
operator+ ( int ) { /* ... */ };
/* More members here*/
};
int main()
{
TEST* test = new TEST;
test->+ 12; // NEED HELP HERE!!
}
You mean this:
Code:*test + 12;
Haha, I should've known that... I guess I was going brain-dead there for a second. Anyways, thanks a bunch!
Also, function call syntax is possible :)
Code:test->operator+( 12 );