Quote Originally Posted by superbonzo View Post
BTW, probably it was just for brevity, but the code snippet is wrong because you're new-ing an incomplete type ( this is an error ) and you're deleting an incomplete type ( this is UB, in general ).
Yeah, you caught that. It was for brevity. The code is actually in a cpp.

Quote Originally Posted by superbonzo View Post
as far as the reference is concerned, the only problem I see is in the event of "new" returning 0; anyway, nothing really serious ...
Quote Originally Posted by laserlight View Post
Doesn't sound like a problem though since nothrow new was not used.
Yup.

Thanks for your feedbacks.