Angus Leeming <[EMAIL PROTECTED]> writes:

| Lars> | but what I really would like to know is WHY does the constructor not
| Lars> | work?
| 
| Lars> You cannot use a constructor on an array allocation.
| 
| Ahhhha! So my compiler is correct! I must say though that this is bad design by
| the standards commitee, (IMHO of course).

C heritage. If you want other constructors than the default one use a
stl container.

| 
| Correct code, therefore, is
|       array = someStruct[10];
|       initialise(array);

Yes. Just as in C.

        Lgb

Reply via email to