2 ms·
The '=' above is not an assignment operator, as there is no assigment, it is a declaration. Yes, the following is also valid: MouseEvent *mouse; if(mou
by Sharlin 14y ago
The '=' above is not an assignment operator, as there is no assigment, it is a declaration. Yes, the following is also valid:
MouseEvent *mouse;
if(mouse = dynamic_cast<MouseEvent *>(event)))
but it is not the same thing.