mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-06 21:56:25 +01:00
Problem: inconsistent polymorphic inheritance
Solution: consistently use virtual, override and final
This commit is contained in:
@@ -36,13 +36,13 @@ namespace zmq
|
||||
{
|
||||
// Decoder for ZMTP/1.0 protocol. Converts data batches into messages.
|
||||
|
||||
class v1_decoder_t : public decoder_base_t<v1_decoder_t>
|
||||
class v1_decoder_t ZMQ_FINAL : public decoder_base_t<v1_decoder_t>
|
||||
{
|
||||
public:
|
||||
v1_decoder_t (size_t bufsize_, int64_t maxmsgsize_);
|
||||
~v1_decoder_t ();
|
||||
~v1_decoder_t () ZMQ_FINAL;
|
||||
|
||||
virtual msg_t *msg () { return &_in_progress; }
|
||||
msg_t *msg () ZMQ_FINAL { return &_in_progress; }
|
||||
|
||||
private:
|
||||
int one_byte_size_ready (unsigned char const *);
|
||||
|
||||
Reference in New Issue
Block a user