{"action":"created","comment":{"url":"https://api.github.com/repos/ripple/rippled/pulls/comments/49764465","id":49764465,"diff_hunk":"@@ -0,0 +1,125 @@\n+//------------------------------------------------------------------------------\n+/*\n+    This file is part of rippled: https://github.com/ripple/rippled\n+    Copyright (c) 2012, 2013 Ripple Labs Inc.\n+\n+    Permission to use, copy, modify, and/or distribute this software for any\n+    purpose  with  or without fee is hereby granted, provided that the above\n+    copyright notice and this permission notice appear in all copies.\n+\n+    THE  SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n+    WITH  REGARD  TO  THIS  SOFTWARE  INCLUDING  ALL  IMPLIED  WARRANTIES  OF\n+    MERCHANTABILITY  AND  FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n+    ANY  SPECIAL ,  DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n+    WHATSOEVER  RESULTING  FROM  LOSS  OF USE, DATA OR PROFITS, WHETHER IN AN\n+    ACTION  OF  CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n+    OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n+*/\n+//==============================================================================\n+\n+#ifndef RIPPLE_BASICS_LOCALVALUE_H_INCLUDED\n+#define RIPPLE_BASICS_LOCALVALUE_H_INCLUDED\n+\n+#include <boost/thread/tss.hpp>\n+#include <memory>\n+#include <unordered_map>\n+\n+namespace ripple {\n+\n+namespace detail {\n+\n+struct LocalValues\n+{\n+    bool onCoro = true;\n+\n+    struct BasicValue\n+    {\n+        virtual ~BasicValue() = default;\n+        virtual void* get() = 0;\n+    };\n+\n+    template <class T>\n+    struct Value : BasicValue\n+    {\n+        T t_;\n+\n+        Value() = default;\n+        Value(T const& t) : t_(t) {}","path":"src/ripple/basics/LocalValue.h","position":47,"original_position":47,"commit_id":"ee10676b7795750d77ebb5d13f065ab251938728","original_commit_id":"ee10676b7795750d77ebb5d13f065ab251938728","user":{"login":"seelabs","id":5853458,"avatar_url":"https://avatars.githubusercontent.com/u/5853458?v=3","gravatar_id":"","url":"https://api.github.com/users/seelabs","html_url":"https://github.com/seelabs","followers_url":"https://api.github.com/users/seelabs/followers","following_url":"https://api.github.com/users/seelabs/following{/other_user}","gists_url":"https://api.github.com/users/seelabs/gists{/gist_id}","starred_url":"https://api.github.com/users/seelabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seelabs/subscriptions","organizations_url":"https://api.github.com/users/seelabs/orgs","repos_url":"https://api.github.com/users/seelabs/repos","events_url":"https://api.github.com/users/seelabs/events{/privacy}","received_events_url":"https://api.github.com/users/seelabs/received_events","type":"User","site_admin":false},"body":"`explicit`","created_at":"2016-01-14T18:31:27Z","updated_at":"2016-01-14T18:31:27Z","html_url":"https://github.com/ripple/rippled/pull/1478#discussion_r49764465","pull_request_url":"https://api.github.com/repos/ripple/rippled/pulls/1478","_links":{"self":{"href":"https://api.github.com/repos/ripple/rippled/pulls/comments/49764465"},"html":{"href":"https://github.com/ripple/rippled/pull/1478#discussion_r49764465"},"pull_request":{"href":"https://api.github.com/repos/ripple/rippled/pulls/1478"}}},"pull_request":{"url":"https://api.github.com/repos/ripple/rippled/pulls/1478","id":55958053,"html_url":"https://github.com/ripple/rippled/pull/1478","diff_url":"https://github.com/ripple/rippled/pull/1478.diff","patch_url":"https://github.com/ripple/rippled/pull/1478.patch","issue_url":"https://api.github.com/repos/ripple/rippled/issues/1478","number":1478,"state":"open","locked":false,"title":"Convert STAmount switchovers to tls (RIPD-1068)","user":{"login":"miguelportilla","id":1524671,"avatar_url":"https://avatars.githubusercontent.com/u/1524671?v=3","gravatar_id":"","url":"https://api.github.com/users/miguelportilla","html_url":"https://github.com/miguelportilla","followers_url":"https://api.github.com/users/miguelportilla/followers","following_url":"https://api.github.com/users/miguelportilla/following{/other_user}","gists_url":"https://api.github.com/users/miguelportilla/gists{/gist_id}","starred_url":"https://api.github.com/users/miguelportilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguelportilla/subscriptions","organizations_url":"https://api.github.com/users/miguelportilla/orgs","repos_url":"https://api.github.com/users/miguelportilla/repos","events_url":"https://api.github.com/users/miguelportilla/events{/privacy}","received_events_url":"https://api.github.com/users/miguelportilla/received_events","type":"User","site_admin":false},"body":"Reviewers: @seelabs @JoelKatz","created_at":"2016-01-13T21:26:47Z","updated_at":"2016-01-14T18:31:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"11c7010318104c5660024474e7f7885f27939ee8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ripple/rippled/pulls/1478/commits","review_comments_url":"https://api.github.com/repos/ripple/rippled/pulls/1478/comments","review_comment_url":"https://api.github.com/repos/ripple/rippled/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ripple/rippled/issues/1478/comments","statuses_url":"https://api.github.com/repos/ripple/rippled/statuses/ee10676b7795750d77ebb5d13f065ab251938728","head":{"label":"miguelportilla:switchover","ref":"switchover","sha":"ee10676b7795750d77ebb5d13f065ab251938728","user":{"login":"miguelportilla","id":1524671,"avatar_url":"https://avatars.githubusercontent.com/u/1524671?v=3","gravatar_id":"","url":"https://api.github.com/users/miguelportilla","html_url":"https://github.com/miguelportilla","followers_url":"https://api.github.com/users/miguelportilla/followers","following_url":"https://api.github.com/users/miguelportilla/following{/other_user}","gists_url":"https://api.github.com/users/miguelportilla/gists{/gist_id}","starred_url":"https://api.github.com/users/miguelportilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguelportilla/subscriptions","organizations_url":"https://api.github.com/users/miguelportilla/orgs","repos_url":"https://api.github.com/users/miguelportilla/repos","events_url":"https://api.github.com/users/miguelportilla/events{/privacy}","received_events_url":"https://api.github.com/users/miguelportilla/received_events","type":"User","site_admin":false},"repo":{"id":18802139,"name":"rippled","full_name":"miguelportilla/rippled","owner":{"login":"miguelportilla","id":1524671,"avatar_url":"https://avatars.githubusercontent.com/u/1524671?v=3","gravatar_id":"","url":"https://api.github.com/users/miguelportilla","html_url":"https://github.com/miguelportilla","followers_url":"https://api.github.com/users/miguelportilla/followers","following_url":"https://api.github.com/users/miguelportilla/following{/other_user}","gists_url":"https://api.github.com/users/miguelportilla/gists{/gist_id}","starred_url":"https://api.github.com/users/miguelportilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguelportilla/subscriptions","organizations_url":"https://api.github.com/users/miguelportilla/orgs","repos_url":"https://api.github.com/users/miguelportilla/repos","events_url":"https://api.github.com/users/miguelportilla/events{/privacy}","received_events_url":"https://api.github.com/users/miguelportilla/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/miguelportilla/rippled","description":"Ripple peer-to-peer network daemon","fork":true,"url":"https://api.github.com/repos/miguelportilla/rippled","forks_url":"https://api.github.com/repos/miguelportilla/rippled/forks","keys_url":"https://api.github.com/repos/miguelportilla/rippled/keys{/key_id}","collaborators_url":"https://api.github.com/repos/miguelportilla/rippled/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/miguelportilla/rippled/teams","hooks_url":"https://api.github.com/repos/miguelportilla/rippled/hooks","issue_events_url":"https://api.github.com/repos/miguelportilla/rippled/issues/events{/number}","events_url":"https://api.github.com/repos/miguelportilla/rippled/events","assignees_url":"https://api.github.com/repos/miguelportilla/rippled/assignees{/user}","branches_url":"https://api.github.com/repos/miguelportilla/rippled/branches{/branch}","tags_url":"https://api.github.com/repos/miguelportilla/rippled/tags","blobs_url":"https://api.github.com/repos/miguelportilla/rippled/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/miguelportilla/rippled/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/miguelportilla/rippled/git/refs{/sha}","trees_url":"https://api.github.com/repos/miguelportilla/rippled/git/trees{/sha}","statuses_url":"https://api.github.com/repos/miguelportilla/rippled/statuses/{sha}","languages_url":"https://api.github.com/repos/miguelportilla/rippled/languages","stargazers_url":"https://api.github.com/repos/miguelportilla/rippled/stargazers","contributors_url":"https://api.github.com/repos/miguelportilla/rippled/contributors","subscribers_url":"https://api.github.com/repos/miguelportilla/rippled/subscribers","subscription_url":"https://api.github.com/repos/miguelportilla/rippled/subscription","commits_url":"https://api.github.com/repos/miguelportilla/rippled/commits{/sha}","git_commits_url":"https://api.github.com/repos/miguelportilla/rippled/git/commits{/sha}","comments_url":"https://api.github.com/repos/miguelportilla/rippled/comments{/number}","issue_comment_url":"https://api.github.com/repos/miguelportilla/rippled/issues/comments{/number}","contents_url":"https://api.github.com/repos/miguelportilla/rippled/contents/{+path}","compare_url":"https://api.github.com/repos/miguelportilla/rippled/compare/{base}...{head}","merges_url":"https://api.github.com/repos/miguelportilla/rippled/merges","archive_url":"https://api.github.com/repos/miguelportilla/rippled/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/miguelportilla/rippled/downloads","issues_url":"https://api.github.com/repos/miguelportilla/rippled/issues{/number}","pulls_url":"https://api.github.com/repos/miguelportilla/rippled/pulls{/number}","milestones_url":"https://api.github.com/repos/miguelportilla/rippled/milestones{/number}","notifications_url":"https://api.github.com/repos/miguelportilla/rippled/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/miguelportilla/rippled/labels{/name}","releases_url":"https://api.github.com/repos/miguelportilla/rippled/releases{/id}","created_at":"2014-04-15T14:02:06Z","updated_at":"2015-02-05T17:31:02Z","pushed_at":"2016-01-14T17:30:05Z","git_url":"git://github.com/miguelportilla/rippled.git","ssh_url":"git@github.com:miguelportilla/rippled.git","clone_url":"https://github.com/miguelportilla/rippled.git","svn_url":"https://github.com/miguelportilla/rippled","homepage":"https://ripple.com","size":61491,"stargazers_count":3,"watchers_count":3,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":3,"default_branch":"develop"}},"base":{"label":"ripple:develop","ref":"develop","sha":"d7935192dd9db58463a6ac38a0906d0b9d78ecc8","user":{"login":"ripple","id":3165523,"avatar_url":"https://avatars.githubusercontent.com/u/3165523?v=3","gravatar_id":"","url":"https://api.github.com/users/ripple","html_url":"https://github.com/ripple","followers_url":"https://api.github.com/users/ripple/followers","following_url":"https://api.github.com/users/ripple/following{/other_user}","gists_url":"https://api.github.com/users/ripple/gists{/gist_id}","starred_url":"https://api.github.com/users/ripple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ripple/subscriptions","organizations_url":"https://api.github.com/users/ripple/orgs","repos_url":"https://api.github.com/users/ripple/repos","events_url":"https://api.github.com/users/ripple/events{/privacy}","received_events_url":"https://api.github.com/users/ripple/received_events","type":"Organization","site_admin":false},"repo":{"id":2724167,"name":"rippled","full_name":"ripple/rippled","owner":{"login":"ripple","id":3165523,"avatar_url":"https://avatars.githubusercontent.com/u/3165523?v=3","gravatar_id":"","url":"https://api.github.com/users/ripple","html_url":"https://github.com/ripple","followers_url":"https://api.github.com/users/ripple/followers","following_url":"https://api.github.com/users/ripple/following{/other_user}","gists_url":"https://api.github.com/users/ripple/gists{/gist_id}","starred_url":"https://api.github.com/users/ripple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ripple/subscriptions","organizations_url":"https://api.github.com/users/ripple/orgs","repos_url":"https://api.github.com/users/ripple/repos","events_url":"https://api.github.com/users/ripple/events{/privacy}","received_events_url":"https://api.github.com/users/ripple/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ripple/rippled","description":"Ripple peer-to-peer network daemon","fork":false,"url":"https://api.github.com/repos/ripple/rippled","forks_url":"https://api.github.com/repos/ripple/rippled/forks","keys_url":"https://api.github.com/repos/ripple/rippled/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ripple/rippled/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ripple/rippled/teams","hooks_url":"https://api.github.com/repos/ripple/rippled/hooks","issue_events_url":"https://api.github.com/repos/ripple/rippled/issues/events{/number}","events_url":"https://api.github.com/repos/ripple/rippled/events","assignees_url":"https://api.github.com/repos/ripple/rippled/assignees{/user}","branches_url":"https://api.github.com/repos/ripple/rippled/branches{/branch}","tags_url":"https://api.github.com/repos/ripple/rippled/tags","blobs_url":"https://api.github.com/repos/ripple/rippled/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ripple/rippled/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ripple/rippled/git/refs{/sha}","trees_url":"https://api.github.com/repos/ripple/rippled/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ripple/rippled/statuses/{sha}","languages_url":"https://api.github.com/repos/ripple/rippled/languages","stargazers_url":"https://api.github.com/repos/ripple/rippled/stargazers","contributors_url":"https://api.github.com/repos/ripple/rippled/contributors","subscribers_url":"https://api.github.com/repos/ripple/rippled/subscribers","subscription_url":"https://api.github.com/repos/ripple/rippled/subscription","commits_url":"https://api.github.com/repos/ripple/rippled/commits{/sha}","git_commits_url":"https://api.github.com/repos/ripple/rippled/git/commits{/sha}","comments_url":"https://api.github.com/repos/ripple/rippled/comments{/number}","issue_comment_url":"https://api.github.com/repos/ripple/rippled/issues/comments{/number}","contents_url":"https://api.github.com/repos/ripple/rippled/contents/{+path}","compare_url":"https://api.github.com/repos/ripple/rippled/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ripple/rippled/merges","archive_url":"https://api.github.com/repos/ripple/rippled/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ripple/rippled/downloads","issues_url":"https://api.github.com/repos/ripple/rippled/issues{/number}","pulls_url":"https://api.github.com/repos/ripple/rippled/pulls{/number}","milestones_url":"https://api.github.com/repos/ripple/rippled/milestones{/number}","notifications_url":"https://api.github.com/repos/ripple/rippled/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ripple/rippled/labels{/name}","releases_url":"https://api.github.com/repos/ripple/rippled/releases{/id}","created_at":"2011-11-07T04:40:15Z","updated_at":"2016-01-14T10:00:18Z","pushed_at":"2016-01-14T17:30:06Z","git_url":"git://github.com/ripple/rippled.git","ssh_url":"git@github.com:ripple/rippled.git","clone_url":"https://github.com/ripple/rippled.git","svn_url":"https://github.com/ripple/rippled","homepage":"https://ripple.com","size":107782,"stargazers_count":1023,"watchers_count":1023,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":302,"mirror_url":null,"open_issues_count":127,"forks":302,"open_issues":127,"watchers":1023,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/ripple/rippled/pulls/1478"},"html":{"href":"https://github.com/ripple/rippled/pull/1478"},"issue":{"href":"https://api.github.com/repos/ripple/rippled/issues/1478"},"comments":{"href":"https://api.github.com/repos/ripple/rippled/issues/1478/comments"},"review_comments":{"href":"https://api.github.com/repos/ripple/rippled/pulls/1478/comments"},"review_comment":{"href":"https://api.github.com/repos/ripple/rippled/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ripple/rippled/pulls/1478/commits"},"statuses":{"href":"https://api.github.com/repos/ripple/rippled/statuses/ee10676b7795750d77ebb5d13f065ab251938728"}}}}