{"comment":{"url":"https://api.github.com/repos/rudi-c/pyston/comments/13038358","html_url":"https://github.com/rudi-c/pyston/commit/5e7b4b4e85cb7d71f2e1477a30f10df5cf4f8e96#commitcomment-13038358","id":13038358,"user":{"login":"kmod","id":271916,"avatar_url":"https://avatars.githubusercontent.com/u/271916?v=3","gravatar_id":"","url":"https://api.github.com/users/kmod","html_url":"https://github.com/kmod","followers_url":"https://api.github.com/users/kmod/followers","following_url":"https://api.github.com/users/kmod/following{/other_user}","gists_url":"https://api.github.com/users/kmod/gists{/gist_id}","starred_url":"https://api.github.com/users/kmod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmod/subscriptions","organizations_url":"https://api.github.com/users/kmod/orgs","repos_url":"https://api.github.com/users/kmod/repos","events_url":"https://api.github.com/users/kmod/events{/privacy}","received_events_url":"https://api.github.com/users/kmod/received_events","type":"User","site_admin":false},"position":7,"line":72,"path":"src/capi/types.h","commit_id":"5e7b4b4e85cb7d71f2e1477a30f10df5cf4f8e96","created_at":"2015-09-03T02:49:34Z","updated_at":"2015-09-03T02:49:34Z","body":"Can we find a way to make this more type-safe?  I'm not sure what the best practice is for `void**` types, but even a template like this would be nicer:\r\n```C++\r\ntemplate <typename T>\r\nvoid visit(T** ptr) {\r\n  _visit(reinterpret_cast<void**>(ptr));\r\n}\r\n```\r\n\r\nsince if we forget the `&` and just directly cast to void** the compiler won't complain."}}