{"action":"closed","issue":{"url":"https://api.github.com/repos/mbedmicro/mbed/issues/1041","labels_url":"https://api.github.com/repos/mbedmicro/mbed/issues/1041/labels{/name}","comments_url":"https://api.github.com/repos/mbedmicro/mbed/issues/1041/comments","events_url":"https://api.github.com/repos/mbedmicro/mbed/issues/1041/events","html_url":"https://github.com/mbedmicro/mbed/issues/1041","id":68619107,"number":1041,"title":"Use the safe bool ideom instead of providing operator bool","user":{"login":"autopulated","id":3456211,"avatar_url":"https://avatars.githubusercontent.com/u/3456211?v=3","gravatar_id":"","url":"https://api.github.com/users/autopulated","html_url":"https://github.com/autopulated","followers_url":"https://api.github.com/users/autopulated/followers","following_url":"https://api.github.com/users/autopulated/following{/other_user}","gists_url":"https://api.github.com/users/autopulated/gists{/gist_id}","starred_url":"https://api.github.com/users/autopulated/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/autopulated/subscriptions","organizations_url":"https://api.github.com/users/autopulated/orgs","repos_url":"https://api.github.com/users/autopulated/repos","events_url":"https://api.github.com/users/autopulated/events{/privacy}","received_events_url":"https://api.github.com/users/autopulated/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-15T08:57:33Z","updated_at":"2015-04-15T09:02:09Z","closed_at":"2015-04-15T09:02:09Z","body":"We should use the [safe bool ideom](http://www.artima.com/cppsource/safebool.html) instead of defining operator bool, as operator bool allows an implicit conversion to int, which can cause unexpected behaviour.\r\n\r\n[re-usable safe-bool implementation](http://www.artima.com/cppsource/safebool3.html)"}}