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

@@ -39,8 +39,7 @@
#include "err.hpp"
zmq::v1_decoder_t::v1_decoder_t (size_t bufsize_, int64_t maxmsgsize_) :
c_single_allocator (bufsize_),
decoder_base_t<v1_decoder_t> (this),
decoder_base_t<v1_decoder_t> (bufsize_),
maxmsgsize (maxmsgsize_)
{
int rc = in_progress.init ();