From: Mathieu Desnoyers Date: Tue, 13 Sep 2011 21:00:08 +0000 (-0400) Subject: urcu-pointer: implement URCU_FORCE_CAST for C++ compatibility of urcu-pointer.h X-Git-Tag: v0.6.5~23 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=4501f28414425eb594bd1396161a91cb23a11a6f;hp=4501f28414425eb594bd1396161a91cb23a11a6f;p=urcu.git urcu-pointer: implement URCU_FORCE_CAST for C++ compatibility of urcu-pointer.h We need to be careful with those, so we do not break aliasing. Our use-case is to cast back and forth between the same type and a void * (or void **) type when we pass pointers to C functions. As we cast back to the same type when the pointer is returned from the function, aliasing should still work. Signed-off-by: Mathieu Desnoyers ---