placement new with void[] instead of void*

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Feb 14 15:04:09 PST 2010


I'm thinking of allowing or even restricting placement new to accept 
values of type void[] for the underlying storage of the object. That 
allows bounds checking to make sure that the object fits. I even wonder 
whether certain uses of placement new would work in safe code.

Andrei



More information about the Digitalmars-d mailing list