{"action":"opened","issue":{"url":"https://api.github.com/repos/fast-project/fast-lib/issues/25","repository_url":"https://api.github.com/repos/fast-project/fast-lib","labels_url":"https://api.github.com/repos/fast-project/fast-lib/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/fast-project/fast-lib/issues/25/comments","events_url":"https://api.github.com/repos/fast-project/fast-lib/issues/25/events","html_url":"https://github.com/fast-project/fast-lib/issues/25","id":164116645,"number":25,"title":"fast::MQTT_communicator must be passed as a non-const reference?","user":{"login":"jbreitbart","id":881727,"avatar_url":"https://avatars.githubusercontent.com/u/881727?v=3","gravatar_id":"","url":"https://api.github.com/users/jbreitbart","html_url":"https://github.com/jbreitbart","followers_url":"https://api.github.com/users/jbreitbart/followers","following_url":"https://api.github.com/users/jbreitbart/following{/other_user}","gists_url":"https://api.github.com/users/jbreitbart/gists{/gist_id}","starred_url":"https://api.github.com/users/jbreitbart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbreitbart/subscriptions","organizations_url":"https://api.github.com/users/jbreitbart/orgs","repos_url":"https://api.github.com/users/jbreitbart/repos","events_url":"https://api.github.com/users/jbreitbart/events{/privacy}","received_events_url":"https://api.github.com/users/jbreitbart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-06T16:19:28Z","updated_at":"2016-07-06T16:19:28Z","closed_at":null,"body":"I just tried to pass MQTT_communicator to a function and it looks like it must be passed as a non-const reference. Is there any specific reason for this? If I pass it as a const-reference, I cannot call get_message/send_message as these functions are not qualified with const. Call by value seems to be problematic, as the destructor closes the connection to the broker(?)."}}
{"actor":{"display_login":"jbreitbart"}}