qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Conway <acon...@redhat.com>
Subject C++ windows declspec question
Date Mon, 30 Mar 2009 13:38:58 GMT
I'm writing up some principles for future-proofing the C++ API and I have a 
question on declspec use:

The client API uses this idiom:

class Foo {
public:
   QPID_CLIENT_EXTERN f();
   QPID_CLIENT_EXTERN g();
};

In past projects I've always used this idiom:

class QPID_CLIENT_EXTERN Foo {
pulblic:
   f();
   g();
};

What's the reason for doing the former rather than the latter? It seems more 
verbose and error prone.

Cheers,
Alan.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


Mime
View raw message