[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C++ vs. glibc/Hurd/Mach headers
From: |
Samuel Thibault |
Subject: |
Re: C++ vs. glibc/Hurd/Mach headers |
Date: |
Sun, 27 Nov 2016 17:51:47 +0100 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Brent W. Baccala, on Fri 25 Nov 2016 17:00:50 -1000, wrote:
> In addition to what Thomas has described, the ports library is unusable with
> C++ because struct port_info has a member named "class".
I have just fixed it.
> Also, the initializer syntax used in /usr/include/refcount.h is unusable with
> g++. For example:
>
> 209 const union _references op =
> 210 { .references = { .weak = ~0U, .hard = 1} };
>
> generates a compiler error:
>
> sorry, unimplemented: non-trivial designated initializers not supported
I'm amazed how C++ still hasn't caught up on such basic useful feature.
Of course C++ is about objects, but structures are useful to initialize
nicely too... Anyway, fixed it too.
Samuel