Originally Posted by Memloop What's wrong with the example above? It compiles without warnings, and I have no idea what it does. In particular, if Foo is a class, what does this do when used outside the class body: Code: Foo(); Calls the constructor, creates a temporary object, then discards the temporary.
Foo();