Error '&' reference cannot used New comment [Deleted] 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. Using class as by reference parameter FOREX - Trends, Forecasts and Implications (Episode 17: July 2012) Scripts: SendPendingOrder [Deleted] 2015.06.06 18:59 #1 No one here? William Roeder 2015.06.06 20:14 #2 You can't return references. Only objects or pointers to classes. Just return the string. [Deleted] 2015.06.06 20:34 #3 Ok, so mql4 not work with "string"-References as Return Value, right? New comment
Hi,
my English not so good, so Sorry.
I have written a class.
And then i became an Error like " '&' reference cannot used".
Can anyone tell me, what im doing wrong? I don't see it.