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