[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-hackers
Subject: Re: Make "sys/queue.h" usable with C++
From: Hans Petter Selasky <hps () selasky ! org>
Date: 2015-06-09 13:15:02
Message-ID: 5576E6D6.8050107 () selasky ! org
[Download RAW message or body]
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
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic