Possible Duplicate:
How to pass a function pointer that points to constructor?
Is it possible to pass to a function a function pointer to an object's constructor?
Something like
myFunction( myObj() );
and how should the function be declared in that case?
void myFunction( (*ObjConstructorPointer)() )
doesn't work because there's no return type