{"action":"created","comment":{"url":"https://api.github.com/repos/szborows/yebash/pulls/comments/87481536","pull_request_review_id":8092702,"id":87481536,"diff_hunk":"@@ -0,0 +1,59 @@\n+#pragma once\n+\n+#include \"Defs.hpp\"\n+\n+#include <string>\n+\n+namespace yb {\n+\n+class PrintBuffer final {\n+\n+    using Container = std::string;\n+    using Iterator = std::string::const_iterator;\n+    Container buffer_;\n+    Iterator position_;\n+    const size_t defaultBufferSize_ = 1024;\n+\n+public:\n+\n+    PrintBuffer() {\n+        buffer_.reserve(defaultBufferSize_);\n+        position_ = buffer_.end();\n+    }\n+\n+    explicit PrintBuffer(size_t size) {\n+        buffer_.reserve(size);\n+        position_ = buffer_.end();\n+    }\n+\n+    PrintBuffer &operator =(std::string &&s) {","path":"src/PrintBuffer.hpp","position":29,"original_position":29,"commit_id":"185fca92a5f3da60d3e389e389beac31217fa5c6","original_commit_id":"185fca92a5f3da60d3e389e389beac31217fa5c6","user":{"login":"szborows","id":1025646,"avatar_url":"https://avatars.githubusercontent.com/u/1025646?v=3","gravatar_id":"","url":"https://api.github.com/users/szborows","html_url":"https://github.com/szborows","followers_url":"https://api.github.com/users/szborows/followers","following_url":"https://api.github.com/users/szborows/following{/other_user}","gists_url":"https://api.github.com/users/szborows/gists{/gist_id}","starred_url":"https://api.github.com/users/szborows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szborows/subscriptions","organizations_url":"https://api.github.com/users/szborows/orgs","repos_url":"https://api.github.com/users/szborows/repos","events_url":"https://api.github.com/users/szborows/events{/privacy}","received_events_url":"https://api.github.com/users/szborows/received_events","type":"User","site_admin":false},"body":"are you sure we should use `operator=` here? it is quite close to move assignment operator and I guess it wasn't your intention?","created_at":"2016-11-10T20:43:28Z","updated_at":"2016-11-10T20:43:34Z","html_url":"https://github.com/szborows/yebash/pull/32#discussion_r87481536","pull_request_url":"https://api.github.com/repos/szborows/yebash/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/szborows/yebash/pulls/comments/87481536"},"html":{"href":"https://github.com/szborows/yebash/pull/32#discussion_r87481536"},"pull_request":{"href":"https://api.github.com/repos/szborows/yebash/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/szborows/yebash/pulls/32","id":93195092,"html_url":"https://github.com/szborows/yebash/pull/32","diff_url":"https://github.com/szborows/yebash/pull/32.diff","patch_url":"https://github.com/szborows/yebash/pull/32.patch","issue_url":"https://api.github.com/repos/szborows/yebash/issues/32","number":32,"state":"open","locked":false,"title":"Print buffer","user":{"login":"Mrokkk","id":17830200,"avatar_url":"https://avatars.githubusercontent.com/u/17830200?v=3","gravatar_id":"","url":"https://api.github.com/users/Mrokkk","html_url":"https://github.com/Mrokkk","followers_url":"https://api.github.com/users/Mrokkk/followers","following_url":"https://api.github.com/users/Mrokkk/following{/other_user}","gists_url":"https://api.github.com/users/Mrokkk/gists{/gist_id}","starred_url":"https://api.github.com/users/Mrokkk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mrokkk/subscriptions","organizations_url":"https://api.github.com/users/Mrokkk/orgs","repos_url":"https://api.github.com/users/Mrokkk/repos","events_url":"https://api.github.com/users/Mrokkk/events{/privacy}","received_events_url":"https://api.github.com/users/Mrokkk/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-10T17:28:13Z","updated_at":"2016-11-10T20:43:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"64220a826564a093b1eb6ca9731ee513caed8dbe","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/szborows/yebash/pulls/32/commits","review_comments_url":"https://api.github.com/repos/szborows/yebash/pulls/32/comments","review_comment_url":"https://api.github.com/repos/szborows/yebash/pulls/comments{/number}","comments_url":"https://api.github.com/repos/szborows/yebash/issues/32/comments","statuses_url":"https://api.github.com/repos/szborows/yebash/statuses/185fca92a5f3da60d3e389e389beac31217fa5c6","head":{"label":"Mrokkk:print-buffer","ref":"print-buffer","sha":"185fca92a5f3da60d3e389e389beac31217fa5c6","user":{"login":"Mrokkk","id":17830200,"avatar_url":"https://avatars.githubusercontent.com/u/17830200?v=3","gravatar_id":"","url":"https://api.github.com/users/Mrokkk","html_url":"https://github.com/Mrokkk","followers_url":"https://api.github.com/users/Mrokkk/followers","following_url":"https://api.github.com/users/Mrokkk/following{/other_user}","gists_url":"https://api.github.com/users/Mrokkk/gists{/gist_id}","starred_url":"https://api.github.com/users/Mrokkk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mrokkk/subscriptions","organizations_url":"https://api.github.com/users/Mrokkk/orgs","repos_url":"https://api.github.com/users/Mrokkk/repos","events_url":"https://api.github.com/users/Mrokkk/events{/privacy}","received_events_url":"https://api.github.com/users/Mrokkk/received_events","type":"User","site_admin":false},"repo":{"id":72460216,"name":"yebash","full_name":"Mrokkk/yebash","owner":{"login":"Mrokkk","id":17830200,"avatar_url":"https://avatars.githubusercontent.com/u/17830200?v=3","gravatar_id":"","url":"https://api.github.com/users/Mrokkk","html_url":"https://github.com/Mrokkk","followers_url":"https://api.github.com/users/Mrokkk/followers","following_url":"https://api.github.com/users/Mrokkk/following{/other_user}","gists_url":"https://api.github.com/users/Mrokkk/gists{/gist_id}","starred_url":"https://api.github.com/users/Mrokkk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mrokkk/subscriptions","organizations_url":"https://api.github.com/users/Mrokkk/orgs","repos_url":"https://api.github.com/users/Mrokkk/repos","events_url":"https://api.github.com/users/Mrokkk/events{/privacy}","received_events_url":"https://api.github.com/users/Mrokkk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Mrokkk/yebash","description":null,"fork":true,"url":"https://api.github.com/repos/Mrokkk/yebash","forks_url":"https://api.github.com/repos/Mrokkk/yebash/forks","keys_url":"https://api.github.com/repos/Mrokkk/yebash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Mrokkk/yebash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Mrokkk/yebash/teams","hooks_url":"https://api.github.com/repos/Mrokkk/yebash/hooks","issue_events_url":"https://api.github.com/repos/Mrokkk/yebash/issues/events{/number}","events_url":"https://api.github.com/repos/Mrokkk/yebash/events","assignees_url":"https://api.github.com/repos/Mrokkk/yebash/assignees{/user}","branches_url":"https://api.github.com/repos/Mrokkk/yebash/branches{/branch}","tags_url":"https://api.github.com/repos/Mrokkk/yebash/tags","blobs_url":"https://api.github.com/repos/Mrokkk/yebash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Mrokkk/yebash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Mrokkk/yebash/git/refs{/sha}","trees_url":"https://api.github.com/repos/Mrokkk/yebash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Mrokkk/yebash/statuses/{sha}","languages_url":"https://api.github.com/repos/Mrokkk/yebash/languages","stargazers_url":"https://api.github.com/repos/Mrokkk/yebash/stargazers","contributors_url":"https://api.github.com/repos/Mrokkk/yebash/contributors","subscribers_url":"https://api.github.com/repos/Mrokkk/yebash/subscribers","subscription_url":"https://api.github.com/repos/Mrokkk/yebash/subscription","commits_url":"https://api.github.com/repos/Mrokkk/yebash/commits{/sha}","git_commits_url":"https://api.github.com/repos/Mrokkk/yebash/git/commits{/sha}","comments_url":"https://api.github.com/repos/Mrokkk/yebash/comments{/number}","issue_comment_url":"https://api.github.com/repos/Mrokkk/yebash/issues/comments{/number}","contents_url":"https://api.github.com/repos/Mrokkk/yebash/contents/{+path}","compare_url":"https://api.github.com/repos/Mrokkk/yebash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Mrokkk/yebash/merges","archive_url":"https://api.github.com/repos/Mrokkk/yebash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Mrokkk/yebash/downloads","issues_url":"https://api.github.com/repos/Mrokkk/yebash/issues{/number}","pulls_url":"https://api.github.com/repos/Mrokkk/yebash/pulls{/number}","milestones_url":"https://api.github.com/repos/Mrokkk/yebash/milestones{/number}","notifications_url":"https://api.github.com/repos/Mrokkk/yebash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Mrokkk/yebash/labels{/name}","releases_url":"https://api.github.com/repos/Mrokkk/yebash/releases{/id}","deployments_url":"https://api.github.com/repos/Mrokkk/yebash/deployments","created_at":"2016-10-31T17:22:47Z","updated_at":"2016-10-31T17:22:48Z","pushed_at":"2016-11-10T17:22:24Z","git_url":"git://github.com/Mrokkk/yebash.git","ssh_url":"git@github.com:Mrokkk/yebash.git","clone_url":"https://github.com/Mrokkk/yebash.git","svn_url":"https://github.com/Mrokkk/yebash","homepage":null,"size":209,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"szborows:master","ref":"master","sha":"8b8d79d378b9152477e26d79c47aa38ea590f20c","user":{"login":"szborows","id":1025646,"avatar_url":"https://avatars.githubusercontent.com/u/1025646?v=3","gravatar_id":"","url":"https://api.github.com/users/szborows","html_url":"https://github.com/szborows","followers_url":"https://api.github.com/users/szborows/followers","following_url":"https://api.github.com/users/szborows/following{/other_user}","gists_url":"https://api.github.com/users/szborows/gists{/gist_id}","starred_url":"https://api.github.com/users/szborows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szborows/subscriptions","organizations_url":"https://api.github.com/users/szborows/orgs","repos_url":"https://api.github.com/users/szborows/repos","events_url":"https://api.github.com/users/szborows/events{/privacy}","received_events_url":"https://api.github.com/users/szborows/received_events","type":"User","site_admin":false},"repo":{"id":71546574,"name":"yebash","full_name":"szborows/yebash","owner":{"login":"szborows","id":1025646,"avatar_url":"https://avatars.githubusercontent.com/u/1025646?v=3","gravatar_id":"","url":"https://api.github.com/users/szborows","html_url":"https://github.com/szborows","followers_url":"https://api.github.com/users/szborows/followers","following_url":"https://api.github.com/users/szborows/following{/other_user}","gists_url":"https://api.github.com/users/szborows/gists{/gist_id}","starred_url":"https://api.github.com/users/szborows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szborows/subscriptions","organizations_url":"https://api.github.com/users/szborows/orgs","repos_url":"https://api.github.com/users/szborows/repos","events_url":"https://api.github.com/users/szborows/events{/privacy}","received_events_url":"https://api.github.com/users/szborows/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/szborows/yebash","description":null,"fork":false,"url":"https://api.github.com/repos/szborows/yebash","forks_url":"https://api.github.com/repos/szborows/yebash/forks","keys_url":"https://api.github.com/repos/szborows/yebash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/szborows/yebash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/szborows/yebash/teams","hooks_url":"https://api.github.com/repos/szborows/yebash/hooks","issue_events_url":"https://api.github.com/repos/szborows/yebash/issues/events{/number}","events_url":"https://api.github.com/repos/szborows/yebash/events","assignees_url":"https://api.github.com/repos/szborows/yebash/assignees{/user}","branches_url":"https://api.github.com/repos/szborows/yebash/branches{/branch}","tags_url":"https://api.github.com/repos/szborows/yebash/tags","blobs_url":"https://api.github.com/repos/szborows/yebash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/szborows/yebash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/szborows/yebash/git/refs{/sha}","trees_url":"https://api.github.com/repos/szborows/yebash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/szborows/yebash/statuses/{sha}","languages_url":"https://api.github.com/repos/szborows/yebash/languages","stargazers_url":"https://api.github.com/repos/szborows/yebash/stargazers","contributors_url":"https://api.github.com/repos/szborows/yebash/contributors","subscribers_url":"https://api.github.com/repos/szborows/yebash/subscribers","subscription_url":"https://api.github.com/repos/szborows/yebash/subscription","commits_url":"https://api.github.com/repos/szborows/yebash/commits{/sha}","git_commits_url":"https://api.github.com/repos/szborows/yebash/git/commits{/sha}","comments_url":"https://api.github.com/repos/szborows/yebash/comments{/number}","issue_comment_url":"https://api.github.com/repos/szborows/yebash/issues/comments{/number}","contents_url":"https://api.github.com/repos/szborows/yebash/contents/{+path}","compare_url":"https://api.github.com/repos/szborows/yebash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/szborows/yebash/merges","archive_url":"https://api.github.com/repos/szborows/yebash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/szborows/yebash/downloads","issues_url":"https://api.github.com/repos/szborows/yebash/issues{/number}","pulls_url":"https://api.github.com/repos/szborows/yebash/pulls{/number}","milestones_url":"https://api.github.com/repos/szborows/yebash/milestones{/number}","notifications_url":"https://api.github.com/repos/szborows/yebash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/szborows/yebash/labels{/name}","releases_url":"https://api.github.com/repos/szborows/yebash/releases{/id}","deployments_url":"https://api.github.com/repos/szborows/yebash/deployments","created_at":"2016-10-21T08:37:57Z","updated_at":"2016-10-25T10:20:52Z","pushed_at":"2016-11-10T17:28:14Z","git_url":"git://github.com/szborows/yebash.git","ssh_url":"git@github.com:szborows/yebash.git","clone_url":"https://github.com/szborows/yebash.git","svn_url":"https://github.com/szborows/yebash","homepage":null,"size":215,"stargazers_count":2,"watchers_count":2,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":12,"forks":1,"open_issues":12,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/szborows/yebash/pulls/32"},"html":{"href":"https://github.com/szborows/yebash/pull/32"},"issue":{"href":"https://api.github.com/repos/szborows/yebash/issues/32"},"comments":{"href":"https://api.github.com/repos/szborows/yebash/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/szborows/yebash/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/szborows/yebash/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/szborows/yebash/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/szborows/yebash/statuses/185fca92a5f3da60d3e389e389beac31217fa5c6"}}}}
{"actor":{"display_login":"szborows"}}