{"action":"created","issue":{"url":"https://api.github.com/repos/google/flatbuffers/issues/4063","repository_url":"https://api.github.com/repos/google/flatbuffers","labels_url":"https://api.github.com/repos/google/flatbuffers/issues/4063/labels{/name}","comments_url":"https://api.github.com/repos/google/flatbuffers/issues/4063/comments","events_url":"https://api.github.com/repos/google/flatbuffers/issues/4063/events","html_url":"https://github.com/google/flatbuffers/issues/4063","id":183366913,"number":4063,"title":"c++ template for buffer creation/deserialization","user":{"login":"lp35","id":17080848,"avatar_url":"https://avatars.githubusercontent.com/u/17080848?v=3","gravatar_id":"","url":"https://api.github.com/users/lp35","html_url":"https://github.com/lp35","followers_url":"https://api.github.com/users/lp35/followers","following_url":"https://api.github.com/users/lp35/following{/other_user}","gists_url":"https://api.github.com/users/lp35/gists{/gist_id}","starred_url":"https://api.github.com/users/lp35/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lp35/subscriptions","organizations_url":"https://api.github.com/users/lp35/orgs","repos_url":"https://api.github.com/users/lp35/repos","events_url":"https://api.github.com/users/lp35/events{/privacy}","received_events_url":"https://api.github.com/users/lp35/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-10-17T09:27:50Z","updated_at":"2016-10-20T12:27:18Z","closed_at":null,"body":"Hi,\r\n\r\nI would like to know if it would be possible to use template instead of name function while generating c++ code.\r\n\r\nFor instance, instead of having\r\n```\r\nCreateMonster(....)\r\nGetMonster(...)\r\n\r\n```\r\nwe would have\r\n\r\n```\r\ntemplate<typename T>\r\nCreate(flatbuffers::Offset<T> returnValue, ...)\r\n\r\ntemplate<typename T>\r\nGet(flatbuffers::Offset<T> returnValue, ...)\r\n```\r\n\r\nThis will allow then to create totally generic serialization layer in our program. After looking at the c++ generator code, I think I can do it but I would like to be sure that it's the good approach and if there will be any chance to be merged upstream for such feature.\r\n\r\nBest regards,"},"comment":{"url":"https://api.github.com/repos/google/flatbuffers/issues/comments/255091587","html_url":"https://github.com/google/flatbuffers/issues/4063#issuecomment-255091587","issue_url":"https://api.github.com/repos/google/flatbuffers/issues/4063","id":255091587,"user":{"login":"lp35","id":17080848,"avatar_url":"https://avatars.githubusercontent.com/u/17080848?v=3","gravatar_id":"","url":"https://api.github.com/users/lp35","html_url":"https://github.com/lp35","followers_url":"https://api.github.com/users/lp35/followers","following_url":"https://api.github.com/users/lp35/following{/other_user}","gists_url":"https://api.github.com/users/lp35/gists{/gist_id}","starred_url":"https://api.github.com/users/lp35/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lp35/subscriptions","organizations_url":"https://api.github.com/users/lp35/orgs","repos_url":"https://api.github.com/users/lp35/repos","events_url":"https://api.github.com/users/lp35/events{/privacy}","received_events_url":"https://api.github.com/users/lp35/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T12:27:18Z","updated_at":"2016-10-20T12:27:18Z","body":"I don't know why my PR is not passing the travis build system... My static_assert is triggered although working like a charm on my VS2015, should I try with a GCC compiler under Linux?"}}
{"actor":{"display_login":"lp35"}}