Possible Duplicate:
Shortcut for constructor
Are the following pieces of code the same in C++:
Piece1:
MyFunnyClass o = MyFunnyClass();
Piece2:
MyFunnyClass o;
I am aware that the following is not equivalent, but I am not sure about the two on the top:
MyFunnyClass o = MyFunnyClass () ;
MyFunnyClass o;
o = MyFunnyClass();