{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/bond/issues/169","repository_url":"https://api.github.com/repos/Microsoft/bond","labels_url":"https://api.github.com/repos/Microsoft/bond/issues/169/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/bond/issues/169/comments","events_url":"https://api.github.com/repos/Microsoft/bond/issues/169/events","html_url":"https://github.com/Microsoft/bond/issues/169","id":158130151,"number":169,"title":"C++ Cant serialize Box of type defined in static library","user":{"login":"acgull","id":1031329,"avatar_url":"https://avatars.githubusercontent.com/u/1031329?v=3","gravatar_id":"","url":"https://api.github.com/users/acgull","html_url":"https://github.com/acgull","followers_url":"https://api.github.com/users/acgull/followers","following_url":"https://api.github.com/users/acgull/following{/other_user}","gists_url":"https://api.github.com/users/acgull/gists{/gist_id}","starred_url":"https://api.github.com/users/acgull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acgull/subscriptions","organizations_url":"https://api.github.com/users/acgull/orgs","repos_url":"https://api.github.com/users/acgull/repos","events_url":"https://api.github.com/users/acgull/events{/privacy}","received_events_url":"https://api.github.com/users/acgull/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-02T12:36:41Z","updated_at":"2016-06-02T12:36:41Z","closed_at":null,"body":"In the example given in \"static_library\" project, instead of trying to serialize `MyStruct` I serialize `Box<MyStruct>`.\r\n\r\n```cpp\r\n    MyStruct obj;\r\n\r\n    // Initialize\r\n    obj.items.resize(1);\r\n    obj.items[0].numbers.push_back(13);\r\n\r\n    Item item;\r\n\r\n    item.numbers.push_back(11);\r\n    obj.item = bond::bonded<Item>(item);\r\n    bond::Box<MyStruct> box;\r\n    box.value = obj;\r\n    // Serialize\r\n    bond::OutputBuffer buffer;\r\n    bond::CompactBinaryWriter<bond::OutputBuffer> writer(buffer);\r\n    bond::Serialize(box, writer);\r\n```\r\n\r\nBuild fails - it looks like bond thinks that `MyStruct` is not a bond type.\r\nIf I do the same thing without the static library, but with reflection everything works fine.\r\n\r\nWhat am I doing wrong?  "}}
{"actor":{"display_login":"acgull"}}