Download MetaTrader 5

Returning reference

To add comments, please log in or register
juxeii
88
juxeii  

Hello,

is it currently possible to return a reference from a class method?

For example:

int& classA::getInt()
{
  return mInt;
}


If not: what would be an alternative?

Maybe returning a pointer?

Thanks

To add comments, please log in or register