{"action":"created","issue":{"url":"https://api.github.com/repos/cppit/jucipp/issues/174","repository_url":"https://api.github.com/repos/cppit/jucipp","labels_url":"https://api.github.com/repos/cppit/jucipp/issues/174/labels{/name}","comments_url":"https://api.github.com/repos/cppit/jucipp/issues/174/comments","events_url":"https://api.github.com/repos/cppit/jucipp/issues/174/events","html_url":"https://github.com/cppit/jucipp/issues/174","id":144634517,"number":174,"title":"Better deduction of auto","user":{"login":"zalox","id":2240543,"avatar_url":"https://avatars.githubusercontent.com/u/2240543?v=3","gravatar_id":"","url":"https://api.github.com/users/zalox","html_url":"https://github.com/zalox","followers_url":"https://api.github.com/users/zalox/followers","following_url":"https://api.github.com/users/zalox/following{/other_user}","gists_url":"https://api.github.com/users/zalox/gists{/gist_id}","starred_url":"https://api.github.com/users/zalox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalox/subscriptions","organizations_url":"https://api.github.com/users/zalox/orgs","repos_url":"https://api.github.com/users/zalox/repos","events_url":"https://api.github.com/users/zalox/events{/privacy}","received_events_url":"https://api.github.com/users/zalox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-30T15:47:59Z","updated_at":"2016-03-30T17:32:37Z","closed_at":null,"body":"I have this use case:\r\n\r\n```c++\r\nclass foo {\r\n foo* get_ptr();\r\n};\r\n\r\n// main\r\nauto ptr = foo.get_ptr();\r\n```\r\nIf I hover ptr now, the type is auto, but i'd like it to be foo*. I realise that ptr is of type auto, but it would be more convenient in my opinion to force it to be the return value type of the expression. Any thoughts? "},"comment":{"url":"https://api.github.com/repos/cppit/jucipp/issues/comments/203542475","html_url":"https://github.com/cppit/jucipp/issues/174#issuecomment-203542475","issue_url":"https://api.github.com/repos/cppit/jucipp/issues/174","id":203542475,"user":{"login":"milleniumbug","id":3199994,"avatar_url":"https://avatars.githubusercontent.com/u/3199994?v=3","gravatar_id":"","url":"https://api.github.com/users/milleniumbug","html_url":"https://github.com/milleniumbug","followers_url":"https://api.github.com/users/milleniumbug/followers","following_url":"https://api.github.com/users/milleniumbug/following{/other_user}","gists_url":"https://api.github.com/users/milleniumbug/gists{/gist_id}","starred_url":"https://api.github.com/users/milleniumbug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milleniumbug/subscriptions","organizations_url":"https://api.github.com/users/milleniumbug/orgs","repos_url":"https://api.github.com/users/milleniumbug/repos","events_url":"https://api.github.com/users/milleniumbug/events{/privacy}","received_events_url":"https://api.github.com/users/milleniumbug/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T17:32:37Z","updated_at":"2016-03-30T17:32:37Z","body":"+1. You can get the type if you hover on any usage of `ptr`, I assume the reason it doesn't work here is because at this point of parsing the type is unknown. If one were to query the type of `ptr` after the declaration... "}}