8 Aug
2006
8 Aug
'06
11:54 a.m.
Johan Råde wrote:
That one is problematic as it really would make the array a non-POD so initialisation would occur during the dynamic phase rather than the static phase. IMO that would be a deal braker :-(
John.
I agree with John. My proposed patch is dead. I think the Rationale section in the array documentation should be updated, to include what we learnt during this discussion. Something like: "The array class does not have a non-template assignment operator. If one were addded, the array class would still be an aggregate, and could still be initialized with a double brace enclosed initializer list. However, the array class would not be a POD anynmore, and such initialization would not be done statically." --Johan Råde