[omniORB] Patch to remove warnings when compiling DynSK files
Matej Kenda
matej.kenda at hermes.si
Fri Jul 22 08:08:47 BST 2005
On Fri, 2005-07-22 at 09:05 +1000, amos at amos.mailshell.com wrote:
> 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.
Yes, that works OK as well. Thanks, Amos.
Regards,
Matej
--
Matej Kenda,
HERMES SoftLab d.d. (www.hermes-softlab.com)
Slovenia
More information about the omniORB-list
mailing list