Buggy constructor's behavior on MT4 build 880

Back to topics list To post a new topic, please log in or register
avatar
8
minimax2000 2015.09.20 03:08
 

I got recent update of MT4 build 880 and MetaEditor build 1173.

I think I found a bug on class constructor's behavior.

class Cls
{
public:
        Cls(const Cls* ptr) { Print(ptr == NULL); }
};

Cls c(NULL);    // Print result is "false" because 'ptr' is a bad pointer.
avatar
53
amir_avatar 2015.09.20 12:58 #
 
try this:

Cls c((Cls*)NULL);    // Print result is "false" because 'ptr' is a bad pointer.
avatar
8
minimax2000 2015.10.04 16:09 #
 
amir_avatar:
try this:

Thanks. The problem has been solved by Build 890 update.
Back to topics list  

To add comments, please log in or register