Download MetaTrader 5

Returning reference

To add comments, please log in or register
They are making profit already using Freelance service. You can join them!
juxeii
88
juxeii 2011.09.26 15:52 

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