
3 Nov
2006
3 Nov
'06
12:02 p.m.
Roland Schwarz <roland.schwarz@chello.at> writes:
Anthony Williams wrote:
Roland Schwarz <roland.schwarz@chello.at> writes:
And such a struct shall be aggregate?
No.
Don't understand:
8.5.1/1 An aggregate is an array or class with no user-declared constructors, no private or protected non-static data members, no base classes, and no virtual functions.
Our example class would fall out of this definition? Can't imagine why it should. To me the concept simply appears as an extension to aggregate initializers. Isn't it?
The class has a user-declared constructor, so it isn't an aggregate. Anthony -- Anthony Williams Software Developer Just Software Solutions Ltd http://www.justsoftwaresolutions.co.uk