{"action":"closed","issue":{"url":"https://api.github.com/repos/arximboldi/immer/issues/33","repository_url":"https://api.github.com/repos/arximboldi/immer","labels_url":"https://api.github.com/repos/arximboldi/immer/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/arximboldi/immer/issues/33/comments","events_url":"https://api.github.com/repos/arximboldi/immer/issues/33/events","html_url":"https://github.com/arximboldi/immer/issues/33","id":304598610,"number":33,"title":"Transient write on vector of boxes","user":{"login":"raygray","id":5157606,"avatar_url":"https://avatars3.githubusercontent.com/u/5157606?v=4","gravatar_id":"","url":"https://api.github.com/users/raygray","html_url":"https://github.com/raygray","followers_url":"https://api.github.com/users/raygray/followers","following_url":"https://api.github.com/users/raygray/following{/other_user}","gists_url":"https://api.github.com/users/raygray/gists{/gist_id}","starred_url":"https://api.github.com/users/raygray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raygray/subscriptions","organizations_url":"https://api.github.com/users/raygray/orgs","repos_url":"https://api.github.com/users/raygray/repos","events_url":"https://api.github.com/users/raygray/events{/privacy}","received_events_url":"https://api.github.com/users/raygray/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-03-13T01:42:06Z","updated_at":"2018-04-17T19:35:55Z","closed_at":"2018-04-17T19:35:55Z","author_association":"NONE","body":"I'm trying to use vector of boxes and everything woks fine until transient write is used. \r\n```cpp\r\nusing Element = immer::box<std::string>;\r\nauto vect = immer::vector<Element>;\r\n\r\n// this one works fine\r\nfor (auto i = 0; i < 100; ++i) {\r\n    vect = vect.push_back(Element(\"x\"));\r\n}\r\n\r\n// this one doesn't compile\r\nauto t = vect.transient();\r\n\r\nfor (auto i = 0; i < 100; ++i) {\r\n    t.push_back(Element(\"x\"));\r\n}\r\n\r\nvect = t.persistent();\r\n```\r\nAny ideas?"}}
{"actor":{"display_login":"arximboldi"}}