This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/2] Use new style initializers in headers


On Fri,  5 Aug 2011 11:59:05 -0700 (PDT)
Roland McGrath <roland@hack.frob.com> wrote:

> > Could any of the code you are modifying be built for C++ with GCC
> > versions before 4.7?  Support for C99 designated initializer syntax
> > is much more recent for C++
> 
> That's a very good point.  I think any bits in public header files
> need to be parameterized.  Or else just switch to plain old ordered
> initializers.

Or it could be just assignments.  That would be even more readable and
just as portable.

-- 
Regards,
Pavel Roskin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]