Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

object alloc with non-default constructor

Name: Anonymous 2008-11-21 23:01

I can't figure out how to instantiate a dynamic array of objects with a call to a specific constructor - it should do something like this:

Image* images = new Image(Image::RGB,w, h, ...)[num];  //doesn't work

instead of

Image* images = new Image[num];  //this calls goddamn default constructor

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List