News for hackers. Stuff that matters.
Re:Obscure C++ Features by Sharlin on Friday April 19, 2013 @03:49PM (#5578374)
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.

There are no comments on this comment yet.