You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hence, there should be some some getters/setters to set the three static variables in class Channel:
static const std::string
EXCHANGE_TYPE_DIRECT; ///< "direct" string constant
static const std::string
EXCHANGE_TYPE_FANOUT; ///< "fanout" string constant
static const std::string EXCHANGE_TYPE_TOPIC; ///< "topic" string constant
Or some other solution.
The text was updated successfully, but these errors were encountered:
Since it seems to be used in Channel::DeclareExchange only, the simplest solution would be to directly set the default argument of the function as void DeclareExchange( const std::string &exchange_name, const std::string &exchange_type = "direct", bool passive = false, bool durable = false, bool auto_delete = false);
Hi, when linking against the dynamic Windows DLL of SimpleAmqpClient, the following error occurs:
This happens because the static variable EXCHANGE_TYPE_DIRECT is not exported.
See https://stackoverflow.com/questions/2479784/exporting-static-data-in-a-dll .
Hence, there should be some some getters/setters to set the three static variables in class Channel:
static const std::string
EXCHANGE_TYPE_DIRECT; ///<
"direct"
string constantstatic const std::string
EXCHANGE_TYPE_FANOUT; ///<
"fanout"
string constantstatic const std::string EXCHANGE_TYPE_TOPIC; ///<
"topic"
string constantOr some other solution.
The text was updated successfully, but these errors were encountered: