[zeromq-dev] [PATCH] decoder asserts

Christian Gudrian christian at gudrian.org
Wed Oct 27 11:26:59 CEST 2010


Am 21.10.2010 08:17, schrieb Dhammika Pathirana:

> if (unlikely (!(static_cast<T*>  (this)->next)))
>     return (size_t) -1;

To make this code compile under C++Builder 2010 I need to remove the 
static_cast so that it reads

if (unlikely (!next))

otherwise the compiler complains that the next member was not accessible.

Removing the cast should not do any harm, should it?

Christian



More information about the zeromq-dev mailing list