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

Hans Petter Selasky hps at selasky.org
Sat Jun 6 19:11:54 UTC 2015


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


More information about the freebsd-hackers mailing list