{"action":"created","comment":{"url":"https://api.github.com/repos/suVrik/kurwa/pulls/comments/206427116","pull_request_review_id":141836756,"id":206427116,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNjQyNzExNg==","diff_hunk":"@@ -0,0 +1,69 @@\n+/**\n+ *  Copyright (c) 2018, 21DOGZ.\n+ *\n+ *  Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file\n+ *  except in compliance with the License. You may obtain a copy of the License at\n+ *\n+ *      http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ *  Unless required by applicable law or agreed to in writing, software distributed under the License is\n+ *  distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ *  See the License for the specific language governing permissions and limitations under the License.\n+ */\n+\n+#pragma once\n+\n+#include <kw/base/types.h>\n+\n+#include <kw/debug/assert.h>\n+\n+namespace kw {\n+/**\n+ * Slow<T> is a structure that contains and gives access to the object of type 'T'.\n+ * The difference between 'T' and 'Slow<T>' is that 'Slow<T>' doesn't construct 'T' right away,\n+ * instead it waits for a 'construct' call.\n+ * Why not use unique_ptr? Slow<T> allocates memory in place which is convenient for arrays and tuples\n+ * (i.e. you can iterate over them faster, due to the fact the objects themselves lay each after each).\n+ */\n+template <typename T>\n+class Slow {\n+public:\n+    typedef T value_type;\n+\n+    /**\n+     * 'T' is not constructed. The attempt to access it leads to undefined behaviour.\n+     */\n+    Slow() = default;\n+\n+    ~Slow() noexcept;\n+    Slow(const Slow&) = delete;\n+    Slow(Slow&& original) noexcept;\n+    Slow& operator=(const Slow&) = delete;\n+    Slow& operator               =(Slow&& original) noexcept;\n+\n+    /**\n+     * Construct an object of type 'T' using the given 'Arguments'.\n+     */\n+    template <typename... Arguments>\n+    void construct(Arguments&&... args) noexcept(eastl::is_nothrow_constructible<T>::value);\n+\n+    /**\n+     * Provide access to the object owned by SlowObject.\n+     */\n+    T& operator*() noexcept;\n+    const T& operator*() const noexcept;\n+    T& operator->() noexcept;\n+    const T& operator->() const noexcept;\n+\n+    /**\n+     * Return true if 'construct' was already called. If not, return false.\n+     */\n+    bool is_constructed() const noexcept;\n+\n+private:\n+    uint8 m_object[sizeof(T)];\n+    bool m_is_constructed = false;\n+};\n+} // namespace kw\n+\n+#include <kw/base/internal/slow_impl.h>","path":"framework/include/kw/base/slow.h","position":69,"original_position":69,"commit_id":"593ac95005d68bbc2c7831a3c0242b107777417d","original_commit_id":"593ac95005d68bbc2c7831a3c0242b107777417d","user":{"login":"antkir","id":1522646,"node_id":"MDQ6VXNlcjE1MjI2NDY=","avatar_url":"https://avatars0.githubusercontent.com/u/1522646?v=4","gravatar_id":"","url":"https://api.github.com/users/antkir","html_url":"https://github.com/antkir","followers_url":"https://api.github.com/users/antkir/followers","following_url":"https://api.github.com/users/antkir/following{/other_user}","gists_url":"https://api.github.com/users/antkir/gists{/gist_id}","starred_url":"https://api.github.com/users/antkir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antkir/subscriptions","organizations_url":"https://api.github.com/users/antkir/orgs","repos_url":"https://api.github.com/users/antkir/repos","events_url":"https://api.github.com/users/antkir/events{/privacy}","received_events_url":"https://api.github.com/users/antkir/received_events","type":"User","site_admin":false},"body":"What's wrong with that lonely boi?","created_at":"2018-07-31T07:52:36Z","updated_at":"2018-07-31T07:52:36Z","html_url":"https://github.com/suVrik/kurwa/pull/35#discussion_r206427116","pull_request_url":"https://api.github.com/repos/suVrik/kurwa/pulls/35","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/suVrik/kurwa/pulls/comments/206427116"},"html":{"href":"https://github.com/suVrik/kurwa/pull/35#discussion_r206427116"},"pull_request":{"href":"https://api.github.com/repos/suVrik/kurwa/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/suVrik/kurwa/pulls/35","id":204926726,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0OTI2NzI2","html_url":"https://github.com/suVrik/kurwa/pull/35","diff_url":"https://github.com/suVrik/kurwa/pull/35.diff","patch_url":"https://github.com/suVrik/kurwa/pull/35.patch","issue_url":"https://api.github.com/repos/suVrik/kurwa/issues/35","number":35,"state":"open","locked":false,"title":"Module system improvements","user":{"login":"suVrik","id":1521057,"node_id":"MDQ6VXNlcjE1MjEwNTc=","avatar_url":"https://avatars0.githubusercontent.com/u/1521057?v=4","gravatar_id":"","url":"https://api.github.com/users/suVrik","html_url":"https://github.com/suVrik","followers_url":"https://api.github.com/users/suVrik/followers","following_url":"https://api.github.com/users/suVrik/following{/other_user}","gists_url":"https://api.github.com/users/suVrik/gists{/gist_id}","starred_url":"https://api.github.com/users/suVrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suVrik/subscriptions","organizations_url":"https://api.github.com/users/suVrik/orgs","repos_url":"https://api.github.com/users/suVrik/repos","events_url":"https://api.github.com/users/suVrik/events{/privacy}","received_events_url":"https://api.github.com/users/suVrik/received_events","type":"User","site_admin":false},"body":"Add possibility to get modules from template-free IGame\r\nAdd possibility to subscribe to 'on_init' and 'on_destroy' signals using IGame\r\nOther improvements","created_at":"2018-07-30T20:53:26Z","updated_at":"2018-07-31T07:52:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"24ae9cde53d061622cb6dd3a594453e421b5c38f","assignee":{"login":"suVrik","id":1521057,"node_id":"MDQ6VXNlcjE1MjEwNTc=","avatar_url":"https://avatars0.githubusercontent.com/u/1521057?v=4","gravatar_id":"","url":"https://api.github.com/users/suVrik","html_url":"https://github.com/suVrik","followers_url":"https://api.github.com/users/suVrik/followers","following_url":"https://api.github.com/users/suVrik/following{/other_user}","gists_url":"https://api.github.com/users/suVrik/gists{/gist_id}","starred_url":"https://api.github.com/users/suVrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suVrik/subscriptions","organizations_url":"https://api.github.com/users/suVrik/orgs","repos_url":"https://api.github.com/users/suVrik/repos","events_url":"https://api.github.com/users/suVrik/events{/privacy}","received_events_url":"https://api.github.com/users/suVrik/received_events","type":"User","site_admin":false},"assignees":[{"login":"suVrik","id":1521057,"node_id":"MDQ6VXNlcjE1MjEwNTc=","avatar_url":"https://avatars0.githubusercontent.com/u/1521057?v=4","gravatar_id":"","url":"https://api.github.com/users/suVrik","html_url":"https://github.com/suVrik","followers_url":"https://api.github.com/users/suVrik/followers","following_url":"https://api.github.com/users/suVrik/following{/other_user}","gists_url":"https://api.github.com/users/suVrik/gists{/gist_id}","starred_url":"https://api.github.com/users/suVrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suVrik/subscriptions","organizations_url":"https://api.github.com/users/suVrik/orgs","repos_url":"https://api.github.com/users/suVrik/repos","events_url":"https://api.github.com/users/suVrik/events{/privacy}","received_events_url":"https://api.github.com/users/suVrik/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/suVrik/kurwa/pulls/35/commits","review_comments_url":"https://api.github.com/repos/suVrik/kurwa/pulls/35/comments","review_comment_url":"https://api.github.com/repos/suVrik/kurwa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/suVrik/kurwa/issues/35/comments","statuses_url":"https://api.github.com/repos/suVrik/kurwa/statuses/593ac95005d68bbc2c7831a3c0242b107777417d","head":{"label":"suVrik:new_modules","ref":"new_modules","sha":"593ac95005d68bbc2c7831a3c0242b107777417d","user":{"login":"suVrik","id":1521057,"node_id":"MDQ6VXNlcjE1MjEwNTc=","avatar_url":"https://avatars0.githubusercontent.com/u/1521057?v=4","gravatar_id":"","url":"https://api.github.com/users/suVrik","html_url":"https://github.com/suVrik","followers_url":"https://api.github.com/users/suVrik/followers","following_url":"https://api.github.com/users/suVrik/following{/other_user}","gists_url":"https://api.github.com/users/suVrik/gists{/gist_id}","starred_url":"https://api.github.com/users/suVrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suVrik/subscriptions","organizations_url":"https://api.github.com/users/suVrik/orgs","repos_url":"https://api.github.com/users/suVrik/repos","events_url":"https://api.github.com/users/suVrik/events{/privacy}","received_events_url":"https://api.github.com/users/suVrik/received_events","type":"User","site_admin":false},"repo":{"id":131288086,"node_id":"MDEwOlJlcG9zaXRvcnkxMzEyODgwODY=","name":"kurwa","full_name":"suVrik/kurwa","owner":{"login":"suVrik","id":1521057,"node_id":"MDQ6VXNlcjE1MjEwNTc=","avatar_url":"https://avatars0.githubusercontent.com/u/1521057?v=4","gravatar_id":"","url":"https://api.github.com/users/suVrik","html_url":"https://github.com/suVrik","followers_url":"https://api.github.com/users/suVrik/followers","following_url":"https://api.github.com/users/suVrik/following{/other_user}","gists_url":"https://api.github.com/users/suVrik/gists{/gist_id}","starred_url":"https://api.github.com/users/suVrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suVrik/subscriptions","organizations_url":"https://api.github.com/users/suVrik/orgs","repos_url":"https://api.github.com/users/suVrik/repos","events_url":"https://api.github.com/users/suVrik/events{/privacy}","received_events_url":"https://api.github.com/users/suVrik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/suVrik/kurwa","description":"kurwa is a framework for making games","fork":false,"url":"https://api.github.com/repos/suVrik/kurwa","forks_url":"https://api.github.com/repos/suVrik/kurwa/forks","keys_url":"https://api.github.com/repos/suVrik/kurwa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/suVrik/kurwa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/suVrik/kurwa/teams","hooks_url":"https://api.github.com/repos/suVrik/kurwa/hooks","issue_events_url":"https://api.github.com/repos/suVrik/kurwa/issues/events{/number}","events_url":"https://api.github.com/repos/suVrik/kurwa/events","assignees_url":"https://api.github.com/repos/suVrik/kurwa/assignees{/user}","branches_url":"https://api.github.com/repos/suVrik/kurwa/branches{/branch}","tags_url":"https://api.github.com/repos/suVrik/kurwa/tags","blobs_url":"https://api.github.com/repos/suVrik/kurwa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/suVrik/kurwa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/suVrik/kurwa/git/refs{/sha}","trees_url":"https://api.github.com/repos/suVrik/kurwa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/suVrik/kurwa/statuses/{sha}","languages_url":"https://api.github.com/repos/suVrik/kurwa/languages","stargazers_url":"https://api.github.com/repos/suVrik/kurwa/stargazers","contributors_url":"https://api.github.com/repos/suVrik/kurwa/contributors","subscribers_url":"https://api.github.com/repos/suVrik/kurwa/subscribers","subscription_url":"https://api.github.com/repos/suVrik/kurwa/subscription","commits_url":"https://api.github.com/repos/suVrik/kurwa/commits{/sha}","git_commits_url":"https://api.github.com/repos/suVrik/kurwa/git/commits{/sha}","comments_url":"https://api.github.com/repos/suVrik/kurwa/comments{/number}","issue_comment_url":"https://api.github.com/repos/suVrik/kurwa/issues/comments{/number}","contents_url":"https://api.github.com/repos/suVrik/kurwa/contents/{+path}","compare_url":"https://api.github.com/repos/suVrik/kurwa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/suVrik/kurwa/merges","archive_url":"https://api.github.com/repos/suVrik/kurwa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/suVrik/kurwa/downloads","issues_url":"https://api.github.com/repos/suVrik/kurwa/issues{/number}","pulls_url":"https://api.github.com/repos/suVrik/kurwa/pulls{/number}","milestones_url":"https://api.github.com/repos/suVrik/kurwa/milestones{/number}","notifications_url":"https://api.github.com/repos/suVrik/kurwa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/suVrik/kurwa/labels{/name}","releases_url":"https://api.github.com/repos/suVrik/kurwa/releases{/id}","deployments_url":"https://api.github.com/repos/suVrik/kurwa/deployments","created_at":"2018-04-27T11:32:26Z","updated_at":"2018-07-29T22:45:40Z","pushed_at":"2018-07-30T21:14:39Z","git_url":"git://github.com/suVrik/kurwa.git","ssh_url":"git@github.com:suVrik/kurwa.git","clone_url":"https://github.com/suVrik/kurwa.git","svn_url":"https://github.com/suVrik/kurwa","homepage":null,"size":16432,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"suVrik:master","ref":"master","sha":"abd3cb784de74859cb16b472c9520e8492ef176d","user":{"login":"suVrik","id":1521057,"node_id":"MDQ6VXNlcjE1MjEwNTc=","avatar_url":"https://avatars0.githubusercontent.com/u/1521057?v=4","gravatar_id":"","url":"https://api.github.com/users/suVrik","html_url":"https://github.com/suVrik","followers_url":"https://api.github.com/users/suVrik/followers","following_url":"https://api.github.com/users/suVrik/following{/other_user}","gists_url":"https://api.github.com/users/suVrik/gists{/gist_id}","starred_url":"https://api.github.com/users/suVrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suVrik/subscriptions","organizations_url":"https://api.github.com/users/suVrik/orgs","repos_url":"https://api.github.com/users/suVrik/repos","events_url":"https://api.github.com/users/suVrik/events{/privacy}","received_events_url":"https://api.github.com/users/suVrik/received_events","type":"User","site_admin":false},"repo":{"id":131288086,"node_id":"MDEwOlJlcG9zaXRvcnkxMzEyODgwODY=","name":"kurwa","full_name":"suVrik/kurwa","owner":{"login":"suVrik","id":1521057,"node_id":"MDQ6VXNlcjE1MjEwNTc=","avatar_url":"https://avatars0.githubusercontent.com/u/1521057?v=4","gravatar_id":"","url":"https://api.github.com/users/suVrik","html_url":"https://github.com/suVrik","followers_url":"https://api.github.com/users/suVrik/followers","following_url":"https://api.github.com/users/suVrik/following{/other_user}","gists_url":"https://api.github.com/users/suVrik/gists{/gist_id}","starred_url":"https://api.github.com/users/suVrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suVrik/subscriptions","organizations_url":"https://api.github.com/users/suVrik/orgs","repos_url":"https://api.github.com/users/suVrik/repos","events_url":"https://api.github.com/users/suVrik/events{/privacy}","received_events_url":"https://api.github.com/users/suVrik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/suVrik/kurwa","description":"kurwa is a framework for making games","fork":false,"url":"https://api.github.com/repos/suVrik/kurwa","forks_url":"https://api.github.com/repos/suVrik/kurwa/forks","keys_url":"https://api.github.com/repos/suVrik/kurwa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/suVrik/kurwa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/suVrik/kurwa/teams","hooks_url":"https://api.github.com/repos/suVrik/kurwa/hooks","issue_events_url":"https://api.github.com/repos/suVrik/kurwa/issues/events{/number}","events_url":"https://api.github.com/repos/suVrik/kurwa/events","assignees_url":"https://api.github.com/repos/suVrik/kurwa/assignees{/user}","branches_url":"https://api.github.com/repos/suVrik/kurwa/branches{/branch}","tags_url":"https://api.github.com/repos/suVrik/kurwa/tags","blobs_url":"https://api.github.com/repos/suVrik/kurwa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/suVrik/kurwa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/suVrik/kurwa/git/refs{/sha}","trees_url":"https://api.github.com/repos/suVrik/kurwa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/suVrik/kurwa/statuses/{sha}","languages_url":"https://api.github.com/repos/suVrik/kurwa/languages","stargazers_url":"https://api.github.com/repos/suVrik/kurwa/stargazers","contributors_url":"https://api.github.com/repos/suVrik/kurwa/contributors","subscribers_url":"https://api.github.com/repos/suVrik/kurwa/subscribers","subscription_url":"https://api.github.com/repos/suVrik/kurwa/subscription","commits_url":"https://api.github.com/repos/suVrik/kurwa/commits{/sha}","git_commits_url":"https://api.github.com/repos/suVrik/kurwa/git/commits{/sha}","comments_url":"https://api.github.com/repos/suVrik/kurwa/comments{/number}","issue_comment_url":"https://api.github.com/repos/suVrik/kurwa/issues/comments{/number}","contents_url":"https://api.github.com/repos/suVrik/kurwa/contents/{+path}","compare_url":"https://api.github.com/repos/suVrik/kurwa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/suVrik/kurwa/merges","archive_url":"https://api.github.com/repos/suVrik/kurwa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/suVrik/kurwa/downloads","issues_url":"https://api.github.com/repos/suVrik/kurwa/issues{/number}","pulls_url":"https://api.github.com/repos/suVrik/kurwa/pulls{/number}","milestones_url":"https://api.github.com/repos/suVrik/kurwa/milestones{/number}","notifications_url":"https://api.github.com/repos/suVrik/kurwa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/suVrik/kurwa/labels{/name}","releases_url":"https://api.github.com/repos/suVrik/kurwa/releases{/id}","deployments_url":"https://api.github.com/repos/suVrik/kurwa/deployments","created_at":"2018-04-27T11:32:26Z","updated_at":"2018-07-29T22:45:40Z","pushed_at":"2018-07-30T21:14:39Z","git_url":"git://github.com/suVrik/kurwa.git","ssh_url":"git@github.com:suVrik/kurwa.git","clone_url":"https://github.com/suVrik/kurwa.git","svn_url":"https://github.com/suVrik/kurwa","homepage":null,"size":16432,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/suVrik/kurwa/pulls/35"},"html":{"href":"https://github.com/suVrik/kurwa/pull/35"},"issue":{"href":"https://api.github.com/repos/suVrik/kurwa/issues/35"},"comments":{"href":"https://api.github.com/repos/suVrik/kurwa/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/suVrik/kurwa/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/suVrik/kurwa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/suVrik/kurwa/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/suVrik/kurwa/statuses/593ac95005d68bbc2c7831a3c0242b107777417d"}},"author_association":"OWNER"}}
{"actor":{"display_login":"antkir"}}