Download MetaTrader 5
To add comments, please log in or register
They are already making profit from their signals. Publish your signal and join them!
AllTimeNoob
9
AllTimeNoob 2015.06.06 14:57 

Hi,

my English not so good, so Sorry.

I have written a class.

class TEST
{
   private:
      
      string T_TakeProfit;
      ...
      ...

   public:

      const string &GetT_TakeProfit()   {return T_TakeProfit;}
      ...
 

And then i  became an Error like " '&' reference cannot used".

Can anyone tell me, what im doing wrong? I don't see it.

AllTimeNoob
9
AllTimeNoob 2015.06.06 18:59  
No one here?
whroeder1
13644
whroeder1 2015.06.06 20:14  
You can't return references. Only objects or pointers to classes. Just return the string.
AllTimeNoob
9
AllTimeNoob 2015.06.06 20:34  
Ok, so mql4 not work with "string"-References as Return Value, right?
/
To add comments, please log in or register