Possible Duplicate:
Do the parentheses after the type name make a difference with new?
Whats the difference between the following initialisations? In the tutorial, it is as in case #1 but does it make any difference if i use the #2 way below?
struct X
{
X() {}
int x;
};
int main()
{
std::auto_ptr<X> p1(new X); // #1
std::auto_ptr<X> p2(new X()); // #2
}