C'tors from templates

dsimcha dsimcha at yahoo.com
Sat Oct 31 11:49:40 PDT 2009


Is there a way to run a class's c'tor on a block of memory from a template
function?  For example:

C newClass(C, CtorArgs...)(CtorArgs args) {
    // Allocate, initialize.
    // Want to call the c'tor that takes type CtorArgs.
}



More information about the Digitalmars-d mailing list