From 0d9b4c8bba5882083169ac25fb1417bffe23b59b Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Mon, 13 Mar 2017 14:02:33 +0100 Subject: [PATCH] reinstalled channel methods that were removed to stay compatible with previous amqp-cpp release --- include/channel.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/channel.h b/include/channel.h index c75041d..fda46bb 100644 --- a/include/channel.h +++ b/include/channel.h @@ -344,7 +344,10 @@ public: * @param size size of the message */ bool publish(const std::string &exchange, const std::string &routingKey, const Envelope &envelope) { return _implementation->publish(exchange, routingKey, envelope); } + bool publish(const std::string &exchange, const std::string &routingKey, const std::string &message) { return _implementation->publish(exchange, routingKey, Envelope(message)); } + bool publish(const std::string &exchange, const std::string &routingKey, std::string &&message) { return _implementation->publish(exchange, routingKey, Envelope(std::move(message))); } bool publish(const std::string &exchange, const std::string &routingKey, const char *message, size_t size) { return _implementation->publish(exchange, routingKey, Envelope(message, size)); } + bool publish(const std::string &exchange, const std::string &routingKey, const char *message) { return _implementation->publish(exchange, routingKey, Envelope(message, strlen(message))); } /** * Set the Quality of Service (QOS) for this channel