{"action":"closed","issue":{"url":"https://api.github.com/repos/isocpp/CppCoreGuidelines/issues/771","repository_url":"https://api.github.com/repos/isocpp/CppCoreGuidelines","labels_url":"https://api.github.com/repos/isocpp/CppCoreGuidelines/issues/771/labels{/name}","comments_url":"https://api.github.com/repos/isocpp/CppCoreGuidelines/issues/771/comments","events_url":"https://api.github.com/repos/isocpp/CppCoreGuidelines/issues/771/events","html_url":"https://github.com/isocpp/CppCoreGuidelines/issues/771","id":183230885,"number":771,"title":"C26481 & C26485 generated for code that doesn't appear to use pointers","user":{"login":"Dave-Lowndes","id":22860463,"avatar_url":"https://avatars.githubusercontent.com/u/22860463?v=3","gravatar_id":"","url":"https://api.github.com/users/Dave-Lowndes","html_url":"https://github.com/Dave-Lowndes","followers_url":"https://api.github.com/users/Dave-Lowndes/followers","following_url":"https://api.github.com/users/Dave-Lowndes/following{/other_user}","gists_url":"https://api.github.com/users/Dave-Lowndes/gists{/gist_id}","starred_url":"https://api.github.com/users/Dave-Lowndes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dave-Lowndes/subscriptions","organizations_url":"https://api.github.com/users/Dave-Lowndes/orgs","repos_url":"https://api.github.com/users/Dave-Lowndes/repos","events_url":"https://api.github.com/users/Dave-Lowndes/events{/privacy}","received_events_url":"https://api.github.com/users/Dave-Lowndes/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-15T20:21:03Z","updated_at":"2016-10-17T18:15:35Z","closed_at":"2016-10-17T18:15:35Z","body":"The following code with VS 15 preview 5 generates the warnings shown with the core checks.\r\n\r\nstatic const int MyArray[] = {1,2,3};\r\nstatic void Fn()\r\n{\r\n// Warning\tC26481\tDon't use pointer arithmetic. Use span instead. (bounds.1: http://go.microsoft.com/fwlink/p/?LinkID=620413)\r\n// Warning\tC26485\tExpression '<range>$L0': No array to pointer decay. ( bounds.3: http://go.microsoft.com/fwlink/p/?LinkID=620415)\r\n\tfor ( const auto item : MyArray )\r\n\t{\r\n\t}\r\n}\r\n\r\nIs this a bug?"}}
{"actor":{"display_login":"neilmacintosh"}}