{"action":"created","issue":{"url":"https://api.github.com/repos/Mooophy/Cpp-Primer/issues/221","labels_url":"https://api.github.com/repos/Mooophy/Cpp-Primer/issues/221/labels{/name}","comments_url":"https://api.github.com/repos/Mooophy/Cpp-Primer/issues/221/comments","events_url":"https://api.github.com/repos/Mooophy/Cpp-Primer/issues/221/events","html_url":"https://github.com/Mooophy/Cpp-Primer/issues/221","id":70773821,"number":221,"title":"Exercise 3.29","user":{"login":"frank67","id":11892185,"avatar_url":"https://avatars.githubusercontent.com/u/11892185?v=3","gravatar_id":"","url":"https://api.github.com/users/frank67","html_url":"https://github.com/frank67","followers_url":"https://api.github.com/users/frank67/followers","following_url":"https://api.github.com/users/frank67/following{/other_user}","gists_url":"https://api.github.com/users/frank67/gists{/gist_id}","starred_url":"https://api.github.com/users/frank67/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frank67/subscriptions","organizations_url":"https://api.github.com/users/frank67/orgs","repos_url":"https://api.github.com/users/frank67/repos","events_url":"https://api.github.com/users/frank67/events{/privacy}","received_events_url":"https://api.github.com/users/frank67/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Mooophy/Cpp-Primer/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"pezy","id":1147451,"avatar_url":"https://avatars.githubusercontent.com/u/1147451?v=3","gravatar_id":"","url":"https://api.github.com/users/pezy","html_url":"https://github.com/pezy","followers_url":"https://api.github.com/users/pezy/followers","following_url":"https://api.github.com/users/pezy/following{/other_user}","gists_url":"https://api.github.com/users/pezy/gists{/gist_id}","starred_url":"https://api.github.com/users/pezy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pezy/subscriptions","organizations_url":"https://api.github.com/users/pezy/orgs","repos_url":"https://api.github.com/users/pezy/repos","events_url":"https://api.github.com/users/pezy/events{/privacy}","received_events_url":"https://api.github.com/users/pezy/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-04-24T19:25:28Z","updated_at":"2015-04-25T01:22:23Z","closed_at":null,"body":"https://github.com/Mooophy/Cpp-Primer/blob/master/ch03/README.md#exercise-329\r\nYou wrote:\r\n```\r\n3. no arrays of references.\r\n```\r\nNeither vector allows to be instantiated with references therefore there aren't vector of references. I suggest:\r\n```\r\n3. size must be known at compile time.\r\n```\r\nHTH\r\nBest regards."},"comment":{"url":"https://api.github.com/repos/Mooophy/Cpp-Primer/issues/comments/96117794","html_url":"https://github.com/Mooophy/Cpp-Primer/issues/221#issuecomment-96117794","issue_url":"https://api.github.com/repos/Mooophy/Cpp-Primer/issues/221","id":96117794,"user":{"login":"Mooophy","id":5942966,"avatar_url":"https://avatars.githubusercontent.com/u/5942966?v=3","gravatar_id":"","url":"https://api.github.com/users/Mooophy","html_url":"https://github.com/Mooophy","followers_url":"https://api.github.com/users/Mooophy/followers","following_url":"https://api.github.com/users/Mooophy/following{/other_user}","gists_url":"https://api.github.com/users/Mooophy/gists{/gist_id}","starred_url":"https://api.github.com/users/Mooophy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mooophy/subscriptions","organizations_url":"https://api.github.com/users/Mooophy/orgs","repos_url":"https://api.github.com/users/Mooophy/repos","events_url":"https://api.github.com/users/Mooophy/events{/privacy}","received_events_url":"https://api.github.com/users/Mooophy/received_events","type":"User","site_admin":false},"created_at":"2015-04-25T01:22:23Z","updated_at":"2015-04-25T01:22:23Z","body":"Just a suggestion:\r\n```cpp\r\n1. can't add elements to an array. \r\n-> less flexibility at run time.\r\n\r\n2. can't use auto to deduce the type from a list of initializers.\r\n-> delete (check below for a counterexample)\r\n\r\n3. no arrays of references. \r\n-> delete \r\n\r\n4. can't use template and iterator. \r\n-> hard to code when following  paradigms like Generics and Mata-programming.(But it's possible, check below for example)\r\n\r\n5. vector have lots of useful methods and algorithms.\r\n-> better supported by std.\r\n```"}}