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.
}
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.
}