From 20a8edcf5c2d9d5099d194e5a87c501d49c47328 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Wed, 13 Jan 2010 13:24:29 +0100 Subject: ZMQII-38: Compiler complains about missing virtual constructors --- src/i_endpoint.hpp | 2 ++ src/i_inout.hpp | 2 ++ 2 files changed, 4 insertions(+) (limited to 'src') diff --git a/src/i_endpoint.hpp b/src/i_endpoint.hpp index 3abd159..d60b39e 100644 --- a/src/i_endpoint.hpp +++ b/src/i_endpoint.hpp @@ -25,6 +25,8 @@ namespace zmq struct i_endpoint { + virtual ~i_endpoint () {} + virtual void attach_pipes (class reader_t *inpipe_, class writer_t *outpipe_) = 0; virtual void detach_inpipe (class reader_t *pipe_) = 0; diff --git a/src/i_inout.hpp b/src/i_inout.hpp index 1053449..c11137d 100644 --- a/src/i_inout.hpp +++ b/src/i_inout.hpp @@ -29,6 +29,8 @@ namespace zmq struct i_inout { + virtual ~i_inout () {} + // Engine asks to get a message to send to the network. virtual bool read (::zmq_msg_t *msg_) = 0; -- cgit v1.2.3