Merge pull request #70 from richievos/patch-1
Build cleanly under c++14
This commit is contained in:
@@ -218,8 +218,10 @@ void MqttBroker::loop()
|
|||||||
MqttError MqttBroker::subscribe(MqttClient* client, const Topic& topic, uint8_t qos)
|
MqttError MqttBroker::subscribe(MqttClient* client, const Topic& topic, uint8_t qos)
|
||||||
{
|
{
|
||||||
debug("MqttBroker::subscribe to " << topic.str() << ", retained=" << retained.size() );
|
debug("MqttBroker::subscribe to " << topic.str() << ", retained=" << retained.size() );
|
||||||
for(auto& [retained_topic, retain]: retained)
|
for(auto& retainItem: retained)
|
||||||
{
|
{
|
||||||
|
auto &retained_topic = retainItem.first;
|
||||||
|
auto &retain = retainItem.second;
|
||||||
debug(" retained: " << retained_topic.str());
|
debug(" retained: " << retained_topic.str());
|
||||||
if (topic.matches(retained_topic))
|
if (topic.matches(retained_topic))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user