Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alternative to ->operator()

Is there a nicer syntax than calling objp->operator()(x, y, z) if objp is a pointer? &objp(x, y, z) does not work. Because of all the symbols, this is hard to Google. Sorry of this is silly.

like image 218
Gabriel Avatar asked Dec 02 '22 16:12

Gabriel


1 Answers

You can use (*objp)(x, y, z); as an alternative.

like image 61
Jonathan Potter Avatar answered Dec 11 '22 06:12

Jonathan Potter