Open CayOest opened 1 year ago
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 constant static const std::string EXCHANGE_TYPE_FANOUT; ///<"fanout"
string constant static const std::string EXCHANGE_TYPE_TOPIC; ///<"topic"
string constantOr some other solution.