André> > Correct code, therefore, is
André> >        array = someStruct[10];
André> >        initialise(array);

André> What about
André>  array = vector<someStruct>(10, initial_value);

would this work?
        array = vector<someStruct>(10, someStruct(someVar));

ie, use a non-default constructor to initialise the vector. This is exactly
what Jürgen is trying to do.

Angus

Reply via email to