[zeromq-dev] [PATCH] decoder asserts
Christian Gudrian
christian at gudrian.org
Wed Oct 27 11:21:52 CEST 2010
Am 27.10.2010 11:18, schrieb Martin Sustrik:
> The derived class (decoder_t) sets the next pointer in the constructor,
> so it should be OK.
That's right. But the base class can't be sure that all derived classes
stick to the protocol. Shouldn't we at least check for a null pointer
via an assertion? An assertion failed error is much more friendly than a
segfault.
Christian
More information about the zeromq-dev
mailing list