Error '&' reference cannot used

 

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.

 
No one here?
 
You can't return references. Only objects or pointers to classes. Just return the string.
 
Ok, so mql4 not work with "string"-References as Return Value, right?
Reason: