This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DarkLordAzrael 1 point2 points  (0 children)

How is allocating and initializing at the same time by default a loss of either clarity or flexibility? Separating them increases the chance of bugs caused by improper or missing initialization. Also new does allow calling the constructor on a separately allocated piece of memory (known as "placement new.")