Fix a few invalid forward declarations

A few forward declarations use mismatched struct and class types. Clang
won't compile this with -Werror.
This commit is contained in:
Christophe Juniet 2013-07-03 21:34:58 +02:00
parent 8b6dcc8420
commit 20cce750fa
5 changed files with 3 additions and 8 deletions

View File

@ -35,8 +35,6 @@
namespace zmq namespace zmq
{ {
class i_msg_sink;
// Helper base class for decoders that know the amount of data to read // Helper base class for decoders that know the amount of data to read
// in advance at any moment. Knowing the amount in advance is a property // in advance at any moment. Knowing the amount in advance is a property
// of the protocol used. 0MQ framing protocol is based size-prefixed // of the protocol used. 0MQ framing protocol is based size-prefixed

View File

@ -40,8 +40,6 @@
namespace zmq namespace zmq
{ {
class i_msg_source;
// Helper base class for encoders. It implements the state machine that // Helper base class for encoders. It implements the state machine that
// fills the outgoing buffer. Derived classes should implement individual // fills the outgoing buffer. Derived classes should implement individual
// state machine actions. // state machine actions.

View File

@ -26,7 +26,8 @@
namespace zmq namespace zmq
{ {
class i_msg_sink; // Forward declaration
struct i_msg_sink;
// Interface to be implemented by message decoder. // Interface to be implemented by message decoder.

View File

@ -27,7 +27,7 @@ namespace zmq
{ {
// Forward declaration // Forward declaration
class i_msg_source; struct i_msg_source;
// Interface to be implemented by message encoder. // Interface to be implemented by message encoder.

View File

@ -29,8 +29,6 @@
namespace zmq namespace zmq
{ {
class i_msg_source;
// Encoder for 0MQ framing protocol. Converts messages into data stream. // Encoder for 0MQ framing protocol. Converts messages into data stream.
class v1_encoder_t : public encoder_base_t <v1_encoder_t> class v1_encoder_t : public encoder_base_t <v1_encoder_t>