Problem: unnecessarily complex inheritance hierarchy in decoders, warning C4355 with VS2010

Solution: make allocator a member of decoder_base_t
This commit is contained in:
Simon Giesecke
2018-05-24 09:25:01 +02:00
parent d96a030125
commit 2ae0c4e2c5
5 changed files with 27 additions and 28 deletions

View File

@@ -36,8 +36,7 @@ namespace zmq
{
// Decoder for ZMTP/1.0 protocol. Converts data batches into messages.
class v1_decoder_t : public zmq::c_single_allocator,
public decoder_base_t<v1_decoder_t>
class v1_decoder_t : public decoder_base_t<v1_decoder_t>
{
public:
v1_decoder_t (size_t bufsize_, int64_t maxmsgsize_);