End Google Ads 201810 - BS.net 01 --> Is there any difference between

auto_ptr p;
...
p = auto_ptr(new foo);


and

auto_ptr p;
...
p = new foo;


I saw the first form in examples and wondered why it was being used.

There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal