Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Jun 2015 09:25:47 +0000
From:      "Poul-Henning Kamp" <phk@freebsd.org>
To:        Hans Petter Selasky <hps@selasky.org>
Cc:        Julian Elischer <julian@freebsd.org>, Ian Lepore <ian@FreeBSD.org>, "freebsd-hackers@freebsd.org" <freebsd-hackers@FreeBSD.org>
Subject:   Re: Make "sys/queue.h" usable with C++
Message-ID:  <29842.1433755547@critter.freebsd.dk>
In-Reply-To: <55734622.5090808@selasky.org>
References:  <52D7D302.3090403@bitfrost.no> <1679.1389879981@critter.freebsd.dk> <52D7E674.4010501@bitfrost.no> <16417.1389881910@critter.freebsd.dk> <1389890913.1230.64.camel@revolution.hippie.lan> <52D8C268.1080009@bitfrost.no> <52D95A8E.3000006@freebsd.org> <55734622.5090808@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--------
In message <55734622.5090808@selasky.org>, Hans Petter Selasky writes:

>I've come up with a smarter way to do it, which I think is more 
>acceptable. Simply we need to duplicate the ENTRY and HEAD macros for 
>use with classes. Then use __typeof() where pointers are referred inside 
>these macros. That's it.
>
>Can you checkout:
>
>https://reviews.freebsd.org/D2745
>
>And give some comments?

It's really a decision if we want to spread dependence on typeof()
to /usr/include isn't it ?

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?29842.1433755547>