{"action":"created","issue":{"url":"https://api.github.com/repos/aantron/better-enums/issues/13","repository_url":"https://api.github.com/repos/aantron/better-enums","labels_url":"https://api.github.com/repos/aantron/better-enums/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/aantron/better-enums/issues/13/comments","events_url":"https://api.github.com/repos/aantron/better-enums/issues/13/events","html_url":"https://github.com/aantron/better-enums/issues/13","id":119622426,"number":13,"title":"Value comparison","user":{"login":"Chaosvex","id":901914,"avatar_url":"https://avatars.githubusercontent.com/u/901914?v=3","gravatar_id":"","url":"https://api.github.com/users/Chaosvex","html_url":"https://github.com/Chaosvex","followers_url":"https://api.github.com/users/Chaosvex/followers","following_url":"https://api.github.com/users/Chaosvex/following{/other_user}","gists_url":"https://api.github.com/users/Chaosvex/gists{/gist_id}","starred_url":"https://api.github.com/users/Chaosvex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chaosvex/subscriptions","organizations_url":"https://api.github.com/users/Chaosvex/orgs","repos_url":"https://api.github.com/users/Chaosvex/repos","events_url":"https://api.github.com/users/Chaosvex/events{/privacy}","received_events_url":"https://api.github.com/users/Chaosvex/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-12-01T01:48:18Z","updated_at":"2016-11-03T15:45:14Z","closed_at":"2015-12-11T00:02:40Z","body":"This could be a case of missing something in the documentation but I couldn't find any mention that comparisons don't work as you'd typically expect.\n\nThat is, the following will fail with an overload resolution error:\n\n``` cpp\nBETTER_ENUM(Channel, int, Red, Green, Blue)\n\nChannel channel = Channel::Red;\n\nif(channel == Channel::Red) // channel.value_ is fine\n```\n\nI'll admit to not going through all of the documentation (tried a search and a few examples) since I wanted a quick evaluation of the library and I'm not interested in the more advanced capabilities but this seems like something that, if it can't be fixed, should be made fairly clear.\n\nThanks!\n"},"comment":{"url":"https://api.github.com/repos/aantron/better-enums/issues/comments/258181900","html_url":"https://github.com/aantron/better-enums/issues/13#issuecomment-258181900","issue_url":"https://api.github.com/repos/aantron/better-enums/issues/13","id":258181900,"user":{"login":"exhau","id":2456032,"avatar_url":"https://avatars.githubusercontent.com/u/2456032?v=3","gravatar_id":"","url":"https://api.github.com/users/exhau","html_url":"https://github.com/exhau","followers_url":"https://api.github.com/users/exhau/followers","following_url":"https://api.github.com/users/exhau/following{/other_user}","gists_url":"https://api.github.com/users/exhau/gists{/gist_id}","starred_url":"https://api.github.com/users/exhau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exhau/subscriptions","organizations_url":"https://api.github.com/users/exhau/orgs","repos_url":"https://api.github.com/users/exhau/repos","events_url":"https://api.github.com/users/exhau/events{/privacy}","received_events_url":"https://api.github.com/users/exhau/received_events","type":"User","site_admin":false},"created_at":"2016-11-03T15:45:14Z","updated_at":"2016-11-03T15:45:14Z","body":"Why not just remove these free-stand comparison function ?\r\nCompiler will do the implicit conversion to enum type. \r\n\r\nif Strict conversions is turned on, then add these function back.\r\n"}}
{"actor":{"display_login":"exhau"}}