[omniORB] Patch to remove warnings when compiling DynSK files

amos at amos.mailshell.com amos at amos.mailshell.com
Fri Jul 22 10:05:54 BST 2005


On Thu, 2005-07-21 at 10:30 +0200, Matej Kenda wrote:
>+#define OMNI_CONST_VOID_CAST(_v) const_cast<void*>((const void*)(_v))

While you are at it - why not use static_cast and be done with
C-like casts altogether? Something like:

+#define OMNI_CONST_VOID_CAST(_v) const_cast<void*>(static_cast<const
void *>(_v))

I haven't tested this specific code but I have something similar in
code I've written before.

Cheers,

--Amos





More information about the omniORB-list mailing list