Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Jun 2015 21:12:34 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        Julian Elischer <julian@freebsd.org>, Ian Lepore <ian@FreeBSD.org>,  Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@FreeBSD.org>
Subject:   Re: Make "sys/queue.h" usable with C++
Message-ID:  <55734622.5090808@selasky.org>
In-Reply-To: <52D95A8E.3000006@freebsd.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>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

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?

--HPS



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