Overloading operator =

 

Hello everybody, I have a strange problem with overloading operator = in MQL5.

I have a struct used for data storage:

struct ZigZagData

  {

    double      Value;

    datetime    Time;

  };

Here everything is OK. I use this data type in one array

I need to overload operator = and change the example:

class ZigZagData

  {

    double      Value;

    datetime    Time;

  };

And the compiled file disappeared (App.ex5)??? What happened?
 
  1. Don't paste code
    Play video
    Please edit your post.
    For large amounts of code, attach it

  2. Both struct and class can have an assignment operator.
  3. Show us your code.
  4. If it doesn't compile there wont be a ex5. How should we know? There are no mind readers here. What do the logs say?
 

  1. Please edit your post.
    For large amounts of code, attach it

  2. Both struct and class can have an assignment operator.
  3. Show us your code.
  4. If it doesn't compile there wont be a ex5. How should we know? There are no mind readers here. What do the logs say?

Sorry, It's my fault. New update of the terminal do not send the cursor to the error lines. It's simply stay on the top.

I will find the solution. Thanks.

P.S. To the developers -> After clicking "compile" put the cursor on the first line with error. Idiots like me are your client too :D

 
one_monk:

Sorry, It's my fault. New update of the terminal do not send the cursor to the error lines. It's simply stay on the top.

I will find the solution. Thanks.

P.S. To the developers -> After clicking "compile" put the cursor on the first line with error. Idiots like me are your client too :D

You have to write to ServiceDesk to report bug.
Reason: