{"action":"created","issue":{"url":"https://api.github.com/repos/google/flatbuffers/issues/3961","repository_url":"https://api.github.com/repos/google/flatbuffers","labels_url":"https://api.github.com/repos/google/flatbuffers/issues/3961/labels{/name}","comments_url":"https://api.github.com/repos/google/flatbuffers/issues/3961/comments","events_url":"https://api.github.com/repos/google/flatbuffers/issues/3961/events","html_url":"https://github.com/google/flatbuffers/pull/3961","id":167226597,"number":3961,"title":"Non smart pointers --gen-object-api version","user":{"login":"bog-dan-ro","id":2239316,"avatar_url":"https://avatars.githubusercontent.com/u/2239316?v=3","gravatar_id":"","url":"https://api.github.com/users/bog-dan-ro","html_url":"https://github.com/bog-dan-ro","followers_url":"https://api.github.com/users/bog-dan-ro/followers","following_url":"https://api.github.com/users/bog-dan-ro/following{/other_user}","gists_url":"https://api.github.com/users/bog-dan-ro/gists{/gist_id}","starred_url":"https://api.github.com/users/bog-dan-ro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bog-dan-ro/subscriptions","organizations_url":"https://api.github.com/users/bog-dan-ro/orgs","repos_url":"https://api.github.com/users/bog-dan-ro/repos","events_url":"https://api.github.com/users/bog-dan-ro/events{/privacy}","received_events_url":"https://api.github.com/users/bog-dan-ro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":61,"created_at":"2016-07-24T10:08:32Z","updated_at":"2016-10-10T16:52:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/google/flatbuffers/pulls/3961","html_url":"https://github.com/google/flatbuffers/pull/3961","diff_url":"https://github.com/google/flatbuffers/pull/3961.diff","patch_url":"https://github.com/google/flatbuffers/pull/3961.patch"},"body":"It is needed to allow the users to assign one struct to another.\r\n\r\nI also added implementation for operator= for unions, now you can do:\r\nunion1 = union2;\r\nor\r\nunion1 = supportedStruct;\r\n\r\nIt is also needed for the upcoming (in the (near) future) Qt support.\r\n"},"comment":{"url":"https://api.github.com/repos/google/flatbuffers/issues/comments/252677456","html_url":"https://github.com/google/flatbuffers/pull/3961#issuecomment-252677456","issue_url":"https://api.github.com/repos/google/flatbuffers/issues/3961","id":252677456,"user":{"login":"gwvo","id":6145400,"avatar_url":"https://avatars.githubusercontent.com/u/6145400?v=3","gravatar_id":"","url":"https://api.github.com/users/gwvo","html_url":"https://github.com/gwvo","followers_url":"https://api.github.com/users/gwvo/followers","following_url":"https://api.github.com/users/gwvo/following{/other_user}","gists_url":"https://api.github.com/users/gwvo/gists{/gist_id}","starred_url":"https://api.github.com/users/gwvo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwvo/subscriptions","organizations_url":"https://api.github.com/users/gwvo/orgs","repos_url":"https://api.github.com/users/gwvo/repos","events_url":"https://api.github.com/users/gwvo/events{/privacy}","received_events_url":"https://api.github.com/users/gwvo/received_events","type":"User","site_admin":false},"created_at":"2016-10-10T16:52:31Z","updated_at":"2016-10-10T16:52:31Z","body":"If we're going to make this an optional thing, then the way I suggest doing this is through field attributes rather than a `flatc` flag. The reason being is that we want to have a feature anyway to allow you to select the type of pointer (e.g. `shared_ptr`), and that you may want to select this on a per field basis.\r\n\r\n`dynamic_cast` won't work since these objects do not have virtual tables."}}
{"actor":{"display_login":"gwvo"}}