This is the mail archive of the egcs@egcs.cygnus.com mailing list for the EGCS project. See the EGCS home page for more information.


[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Re: partly bracketed initializer ?



On Feb 20, 1999, "Martin v. Loewis" <martin@mira.isdn.cs.tu-berlin.de> wrote:

> Since we are talking about a static member, it is zero-initialized
> anyway, and therefore it happens to work. I'm not sure about the
> constraints on mutex_t objects - if you can make them automatic
> variables, you might run into problems.

[dcl.init.aggr]/7 says that aggregate members that are not explicitly
initialized shall be default-initialized.  Default initialization for
scalar types is zero-initialization, so there should be no problem.

-- 
Alexandre Oliva  http://www.dcc.unicamp.br/~oliva  aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil