Make "sys/queue.h" usable with C++

Hans Petter Selasky hps at selasky.org
Tue Jun 9 13:14:19 UTC 2015


On 06/09/15 14:56, Eric van Gyzen wrote:
> On 06/09/2015 05:54, Hans Petter Selasky wrote:
>> On 06/08/15 11:25, Poul-Henning Kamp wrote:
>>> It's really a decision if we want to spread dependence on typeof()
>>> to /usr/include isn't it ?
>>
>> Hi Paul-Henning,
>>
>> I'm aware about the typeof. Without typeof we would have to duplicate
>> more of the queue macros, because in C++ you can make lists with both
>> structs and classes. Else like some have suggested, we might drop the
>> class/struct keyword, but that again will not work in external C
>> sections in C++ files.
>
> Did you test your claim in the last sentence?  I did.

Hi,

Just did and found you're right, at least with recent clang. My C++ 
grows a little bit every now and then ...

> 	https://reviews.freebsd.org/D2767
>

Seems like at least some consensus then :-)

--HPS



More information about the freebsd-hackers mailing list