{"action":"created","issue":{"url":"https://api.github.com/repos/halmer/oop/issues/7","repository_url":"https://api.github.com/repos/halmer/oop","labels_url":"https://api.github.com/repos/halmer/oop/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/halmer/oop/issues/7/comments","events_url":"https://api.github.com/repos/halmer/oop/issues/7/events","html_url":"https://github.com/halmer/oop/issues/7","id":162957426,"number":7,"title":"Замечания по CMyString","user":{"login":"alexey-malov","id":6040682,"avatar_url":"https://avatars.githubusercontent.com/u/6040682?v=3","gravatar_id":"","url":"https://api.github.com/users/alexey-malov","html_url":"https://github.com/alexey-malov","followers_url":"https://api.github.com/users/alexey-malov/followers","following_url":"https://api.github.com/users/alexey-malov/following{/other_user}","gists_url":"https://api.github.com/users/alexey-malov/gists{/gist_id}","starred_url":"https://api.github.com/users/alexey-malov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexey-malov/subscriptions","organizations_url":"https://api.github.com/users/alexey-malov/orgs","repos_url":"https://api.github.com/users/alexey-malov/repos","events_url":"https://api.github.com/users/alexey-malov/events{/privacy}","received_events_url":"https://api.github.com/users/alexey-malov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-29T15:35:26Z","updated_at":"2016-06-29T15:55:07Z","closed_at":null,"body":"Лучше приватно унаследоваться от аллокатора, тогда не будет тратиться память под аллокатор\r\nЭто т.н. Empty Base Optimization:\r\nhttp://en.cppreference.com/w/cpp/language/ebo\r\n\r\nКак реализовать вектор с нуля\r\nhttps://www.youtube.com/watch?v=SfE_fi1BbhI&feature=youtu.be\r\n"},"comment":{"url":"https://api.github.com/repos/halmer/oop/issues/comments/229401504","html_url":"https://github.com/halmer/oop/issues/7#issuecomment-229401504","issue_url":"https://api.github.com/repos/halmer/oop/issues/7","id":229401504,"user":{"login":"alexey-malov","id":6040682,"avatar_url":"https://avatars.githubusercontent.com/u/6040682?v=3","gravatar_id":"","url":"https://api.github.com/users/alexey-malov","html_url":"https://github.com/alexey-malov","followers_url":"https://api.github.com/users/alexey-malov/followers","following_url":"https://api.github.com/users/alexey-malov/following{/other_user}","gists_url":"https://api.github.com/users/alexey-malov/gists{/gist_id}","starred_url":"https://api.github.com/users/alexey-malov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexey-malov/subscriptions","organizations_url":"https://api.github.com/users/alexey-malov/orgs","repos_url":"https://api.github.com/users/alexey-malov/repos","events_url":"https://api.github.com/users/alexey-malov/events{/privacy}","received_events_url":"https://api.github.com/users/alexey-malov/received_events","type":"User","site_admin":false},"created_at":"2016-06-29T15:55:07Z","updated_at":"2016-06-29T15:55:07Z","body":"```c++\r\nvoid CMyString::Clear()\r\n{\r\n\tif (m_first)\r\n\t{\r\n\t\tthis->~CMyString();\r\n\t\tm_first = nullptr;\r\n\t\tm_size = 0;\r\n\t}\r\n}\r\n```\r\nНеопределенное поведение.\r\nпосле вызова деструктора пользоваться объектом нельзя."}}
{"actor":{"display_login":"alexey-malov"}}