Boost logo

Boost :

From: Anthony Williams (anthony_w.geo_at_[hidden])
Date: 2006-11-03 07:02:34

Roland Schwarz <roland.schwarz_at_[hidden]> writes:

> Anthony Williams wrote:
>> Roland Schwarz <roland.schwarz_at_[hidden]> 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 Williams
Software Developer
Just Software Solutions Ltd

Boost list run by bdawes at, gregod at, cpdaniel at, john at