{"action":"created","issue":{"url":"https://api.github.com/repos/mono/CppSharp/issues/518","labels_url":"https://api.github.com/repos/mono/CppSharp/issues/518/labels{/name}","comments_url":"https://api.github.com/repos/mono/CppSharp/issues/518/comments","events_url":"https://api.github.com/repos/mono/CppSharp/issues/518/events","html_url":"https://github.com/mono/CppSharp/pull/518","id":94591210,"number":518,"title":"Added a pass to allow struct to struct marshalling if possible","user":{"login":"genuinelucifer","id":11402325,"avatar_url":"https://avatars.githubusercontent.com/u/11402325?v=3","gravatar_id":"","url":"https://api.github.com/users/genuinelucifer","html_url":"https://github.com/genuinelucifer","followers_url":"https://api.github.com/users/genuinelucifer/followers","following_url":"https://api.github.com/users/genuinelucifer/following{/other_user}","gists_url":"https://api.github.com/users/genuinelucifer/gists{/gist_id}","starred_url":"https://api.github.com/users/genuinelucifer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genuinelucifer/subscriptions","organizations_url":"https://api.github.com/users/genuinelucifer/orgs","repos_url":"https://api.github.com/users/genuinelucifer/repos","events_url":"https://api.github.com/users/genuinelucifer/events{/privacy}","received_events_url":"https://api.github.com/users/genuinelucifer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-12T19:01:38Z","updated_at":"2015-07-21T09:52:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mono/CppSharp/pulls/518","html_url":"https://github.com/mono/CppSharp/pull/518","diff_url":"https://github.com/mono/CppSharp/pull/518.diff","patch_url":"https://github.com/mono/CppSharp/pull/518.patch"},"body":"@tritao @ddobrev Please review. It is based on one of my earlier pulls and the first commit is from that only.\r\nThis pull tries to address #500 ."},"comment":{"url":"https://api.github.com/repos/mono/CppSharp/issues/comments/123245121","html_url":"https://github.com/mono/CppSharp/pull/518#issuecomment-123245121","issue_url":"https://api.github.com/repos/mono/CppSharp/issues/518","id":123245121,"user":{"login":"genuinelucifer","id":11402325,"avatar_url":"https://avatars.githubusercontent.com/u/11402325?v=3","gravatar_id":"","url":"https://api.github.com/users/genuinelucifer","html_url":"https://github.com/genuinelucifer","followers_url":"https://api.github.com/users/genuinelucifer/followers","following_url":"https://api.github.com/users/genuinelucifer/following{/other_user}","gists_url":"https://api.github.com/users/genuinelucifer/gists{/gist_id}","starred_url":"https://api.github.com/users/genuinelucifer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genuinelucifer/subscriptions","organizations_url":"https://api.github.com/users/genuinelucifer/orgs","repos_url":"https://api.github.com/users/genuinelucifer/repos","events_url":"https://api.github.com/users/genuinelucifer/events{/privacy}","received_events_url":"https://api.github.com/users/genuinelucifer/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T09:52:07Z","updated_at":"2015-07-21T09:52:07Z","body":"if we have code like:\r\n```C++\r\nstruct RefType\r\n{\r\nprotected:\r\n    int n;\r\npublic:\r\n    virtual int getN() { return n; }\r\n};\r\n\r\nstruct CS_VALUE_TYPE ValType : public RefType\r\n{\r\n};\r\n```\r\nThen uncompilable code was generated. We simply copy members from the base into the derived type if the derived type is a value type. But value types can't have protected &/or virtual members. So, i just wanted to fix that."}}