{"action":"created","comment":{"url":"https://api.github.com/repos/STEllAR-GROUP/hpx/pulls/comments/25504738","id":25504738,"diff_hunk":"@@ -0,0 +1,289 @@\n+//  Copyright (c) 2015 Daniel Bourgeois\n+//\n+//  Distributed under the Boost Software License, Version 1.0. (See accompanying\n+//  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)\n+\n+/// \\file parallel/algorithms/remove_copy.hpp\n+\n+#if !defined(HPX_PARALLEL_DETAIL_REMOVE_COPY_FEB_25_2015_0137PM)\n+#define HPX_PARALLEL_DETAIL_REMOVE_COPY_FEB_25_2015_0137PM\n+\n+#include <hpx/hpx_fwd.hpp>\n+#include <hpx/parallel/execution_policy.hpp>\n+#include <hpx/parallel/algorithms/detail/algorithm_result.hpp>\n+#include <hpx/parallel/algorithms/detail/dispatch.hpp>\n+#include <hpx/parallel/algorithms/copy.hpp>\n+\n+#include <algorithm>\n+#include <iterator>\n+#include <type_traits>\n+\n+#include <boost/static_assert.hpp>\n+#include <boost/utility/enable_if.hpp>\n+#include <boost/type_traits/is_base_of.hpp>\n+\n+namespace hpx { namespace parallel { HPX_INLINE_NAMESPACE(v1)\n+{\n+    /////////////////////////////////////////////////////////////////////////////\n+    // remove_copy\n+    namespace detail\n+    {\n+        /// \\cond NOINTERNAL\n+        template <typename Iter>\n+        struct remove_copy : public detail::algorithm<remove_copy<Iter>, Iter>\n+        {\n+            remove_copy()\n+              : remove_copy::algorithm(\"remove_copy\")\n+            {}\n+\n+            template <typename ExPolicy, typename InIter, typename T>\n+            static Iter\n+            sequential(ExPolicy const&, InIter first, InIter last,\n+                Iter dest, const T& val)\n+            {\n+                return std::remove_copy(first, last, dest, val);\n+            }\n+\n+            template <typename ExPolicy, typename FwdIter, typename T>\n+            static typename detail::algorithm_result<ExPolicy, Iter>::type\n+            parallel(ExPolicy const& policy, FwdIter first, FwdIter last,\n+                Iter dest, const T& val)\n+            {\n+                return copy_if<Iter>().call(\n+                    policy, boost::mpl::false_(), first, last, dest,\n+                    [&val](T a){ return a != val; });\n+            }","path":"hpx/parallel/algorithms/remove_copy.hpp","position":55,"original_position":55,"commit_id":"edf2c993b9d058eed8deee4d75a824f814fc7e3b","original_commit_id":"edf2c993b9d058eed8deee4d75a824f814fc7e3b","user":{"login":"dcbdan","id":10456396,"avatar_url":"https://avatars.githubusercontent.com/u/10456396?v=3","gravatar_id":"","url":"https://api.github.com/users/dcbdan","html_url":"https://github.com/dcbdan","followers_url":"https://api.github.com/users/dcbdan/followers","following_url":"https://api.github.com/users/dcbdan/following{/other_user}","gists_url":"https://api.github.com/users/dcbdan/gists{/gist_id}","starred_url":"https://api.github.com/users/dcbdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcbdan/subscriptions","organizations_url":"https://api.github.com/users/dcbdan/orgs","repos_url":"https://api.github.com/users/dcbdan/repos","events_url":"https://api.github.com/users/dcbdan/events{/privacy}","received_events_url":"https://api.github.com/users/dcbdan/received_events","type":"User","site_admin":false},"body":"Is that because the lifetime of the lambda exceeds the lifetime of val?","created_at":"2015-02-27T13:08:13Z","updated_at":"2015-02-27T13:08:13Z","html_url":"https://github.com/STEllAR-GROUP/hpx/pull/1385#discussion_r25504738","pull_request_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/pulls/1385","_links":{"self":{"href":"https://api.github.com/repos/STEllAR-GROUP/hpx/pulls/comments/25504738"},"html":{"href":"https://github.com/STEllAR-GROUP/hpx/pull/1385#discussion_r25504738"},"pull_request":{"href":"https://api.github.com/repos/STEllAR-GROUP/hpx/pulls/1385"}}},"pull_request":{"url":"https://api.github.com/repos/STEllAR-GROUP/hpx/pulls/1385","id":30137584,"html_url":"https://github.com/STEllAR-GROUP/hpx/pull/1385","diff_url":"https://github.com/STEllAR-GROUP/hpx/pull/1385.diff","patch_url":"https://github.com/STEllAR-GROUP/hpx/pull/1385.patch","issue_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/issues/1385","number":1385,"state":"open","locked":false,"title":"Copy algorithms","user":{"login":"dcbdan","id":10456396,"avatar_url":"https://avatars.githubusercontent.com/u/10456396?v=3","gravatar_id":"","url":"https://api.github.com/users/dcbdan","html_url":"https://github.com/dcbdan","followers_url":"https://api.github.com/users/dcbdan/followers","following_url":"https://api.github.com/users/dcbdan/following{/other_user}","gists_url":"https://api.github.com/users/dcbdan/gists{/gist_id}","starred_url":"https://api.github.com/users/dcbdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcbdan/subscriptions","organizations_url":"https://api.github.com/users/dcbdan/orgs","repos_url":"https://api.github.com/users/dcbdan/repos","events_url":"https://api.github.com/users/dcbdan/events{/privacy}","received_events_url":"https://api.github.com/users/dcbdan/received_events","type":"User","site_admin":false},"body":"Implemented copy_if using scan partitioner. Then used copy_if to implement remove_copy and remove_copy_if.","created_at":"2015-02-27T02:44:46Z","updated_at":"2015-02-27T13:08:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ea9717d9b0756cd2d29cd28cb5cdfa0965b71c68","assignee":null,"milestone":{"url":"https://api.github.com/repos/STEllAR-GROUP/hpx/milestones/23","html_url":"https://github.com/STEllAR-GROUP/hpx/milestones/0.9.10","labels_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/milestones/23/labels","id":788611,"number":23,"title":"0.9.10","description":"","creator":{"login":"hkaiser","id":568063,"avatar_url":"https://avatars.githubusercontent.com/u/568063?v=3","gravatar_id":"","url":"https://api.github.com/users/hkaiser","html_url":"https://github.com/hkaiser","followers_url":"https://api.github.com/users/hkaiser/followers","following_url":"https://api.github.com/users/hkaiser/following{/other_user}","gists_url":"https://api.github.com/users/hkaiser/gists{/gist_id}","starred_url":"https://api.github.com/users/hkaiser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hkaiser/subscriptions","organizations_url":"https://api.github.com/users/hkaiser/orgs","repos_url":"https://api.github.com/users/hkaiser/repos","events_url":"https://api.github.com/users/hkaiser/events{/privacy}","received_events_url":"https://api.github.com/users/hkaiser/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":92,"state":"open","created_at":"2014-09-13T15:11:03Z","updated_at":"2015-02-27T11:12:33Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/pulls/1385/commits","review_comments_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/pulls/1385/comments","review_comment_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/issues/1385/comments","statuses_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/statuses/edf2c993b9d058eed8deee4d75a824f814fc7e3b","head":{"label":"STEllAR-GROUP:copy_algorithms","ref":"copy_algorithms","sha":"edf2c993b9d058eed8deee4d75a824f814fc7e3b","user":{"login":"STEllAR-GROUP","id":1780988,"avatar_url":"https://avatars.githubusercontent.com/u/1780988?v=3","gravatar_id":"","url":"https://api.github.com/users/STEllAR-GROUP","html_url":"https://github.com/STEllAR-GROUP","followers_url":"https://api.github.com/users/STEllAR-GROUP/followers","following_url":"https://api.github.com/users/STEllAR-GROUP/following{/other_user}","gists_url":"https://api.github.com/users/STEllAR-GROUP/gists{/gist_id}","starred_url":"https://api.github.com/users/STEllAR-GROUP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/STEllAR-GROUP/subscriptions","organizations_url":"https://api.github.com/users/STEllAR-GROUP/orgs","repos_url":"https://api.github.com/users/STEllAR-GROUP/repos","events_url":"https://api.github.com/users/STEllAR-GROUP/events{/privacy}","received_events_url":"https://api.github.com/users/STEllAR-GROUP/received_events","type":"Organization","site_admin":false},"repo":{"id":4455628,"name":"hpx","full_name":"STEllAR-GROUP/hpx","owner":{"login":"STEllAR-GROUP","id":1780988,"avatar_url":"https://avatars.githubusercontent.com/u/1780988?v=3","gravatar_id":"","url":"https://api.github.com/users/STEllAR-GROUP","html_url":"https://github.com/STEllAR-GROUP","followers_url":"https://api.github.com/users/STEllAR-GROUP/followers","following_url":"https://api.github.com/users/STEllAR-GROUP/following{/other_user}","gists_url":"https://api.github.com/users/STEllAR-GROUP/gists{/gist_id}","starred_url":"https://api.github.com/users/STEllAR-GROUP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/STEllAR-GROUP/subscriptions","organizations_url":"https://api.github.com/users/STEllAR-GROUP/orgs","repos_url":"https://api.github.com/users/STEllAR-GROUP/repos","events_url":"https://api.github.com/users/STEllAR-GROUP/events{/privacy}","received_events_url":"https://api.github.com/users/STEllAR-GROUP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/STEllAR-GROUP/hpx","description":"A general purpose C++ runtime system for parallel and distributed applications of any scale","fork":false,"url":"https://api.github.com/repos/STEllAR-GROUP/hpx","forks_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/forks","keys_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/teams","hooks_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/hooks","issue_events_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/issues/events{/number}","events_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/events","assignees_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/assignees{/user}","branches_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/branches{/branch}","tags_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/tags","blobs_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/git/refs{/sha}","trees_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/statuses/{sha}","languages_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/languages","stargazers_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/stargazers","contributors_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/contributors","subscribers_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/subscribers","subscription_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/subscription","commits_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/commits{/sha}","git_commits_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/git/commits{/sha}","comments_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/comments{/number}","issue_comment_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/issues/comments{/number}","contents_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/contents/{+path}","compare_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/merges","archive_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/downloads","issues_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/issues{/number}","pulls_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/pulls{/number}","milestones_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/milestones{/number}","notifications_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/labels{/name}","releases_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/releases{/id}","created_at":"2012-05-26T15:02:39Z","updated_at":"2015-02-27T12:51:55Z","pushed_at":"2015-02-27T12:51:55Z","git_url":"git://github.com/STEllAR-GROUP/hpx.git","ssh_url":"git@github.com:STEllAR-GROUP/hpx.git","clone_url":"https://github.com/STEllAR-GROUP/hpx.git","svn_url":"https://github.com/STEllAR-GROUP/hpx","homepage":"http://stellar-group.org/libraries/hpx","size":365388,"stargazers_count":221,"watchers_count":221,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":71,"mirror_url":null,"open_issues_count":73,"forks":71,"open_issues":73,"watchers":221,"default_branch":"master"}},"base":{"label":"STEllAR-GROUP:master","ref":"master","sha":"78bf86a7fc06b978d67651bfb2add6bfae19efae","user":{"login":"STEllAR-GROUP","id":1780988,"avatar_url":"https://avatars.githubusercontent.com/u/1780988?v=3","gravatar_id":"","url":"https://api.github.com/users/STEllAR-GROUP","html_url":"https://github.com/STEllAR-GROUP","followers_url":"https://api.github.com/users/STEllAR-GROUP/followers","following_url":"https://api.github.com/users/STEllAR-GROUP/following{/other_user}","gists_url":"https://api.github.com/users/STEllAR-GROUP/gists{/gist_id}","starred_url":"https://api.github.com/users/STEllAR-GROUP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/STEllAR-GROUP/subscriptions","organizations_url":"https://api.github.com/users/STEllAR-GROUP/orgs","repos_url":"https://api.github.com/users/STEllAR-GROUP/repos","events_url":"https://api.github.com/users/STEllAR-GROUP/events{/privacy}","received_events_url":"https://api.github.com/users/STEllAR-GROUP/received_events","type":"Organization","site_admin":false},"repo":{"id":4455628,"name":"hpx","full_name":"STEllAR-GROUP/hpx","owner":{"login":"STEllAR-GROUP","id":1780988,"avatar_url":"https://avatars.githubusercontent.com/u/1780988?v=3","gravatar_id":"","url":"https://api.github.com/users/STEllAR-GROUP","html_url":"https://github.com/STEllAR-GROUP","followers_url":"https://api.github.com/users/STEllAR-GROUP/followers","following_url":"https://api.github.com/users/STEllAR-GROUP/following{/other_user}","gists_url":"https://api.github.com/users/STEllAR-GROUP/gists{/gist_id}","starred_url":"https://api.github.com/users/STEllAR-GROUP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/STEllAR-GROUP/subscriptions","organizations_url":"https://api.github.com/users/STEllAR-GROUP/orgs","repos_url":"https://api.github.com/users/STEllAR-GROUP/repos","events_url":"https://api.github.com/users/STEllAR-GROUP/events{/privacy}","received_events_url":"https://api.github.com/users/STEllAR-GROUP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/STEllAR-GROUP/hpx","description":"A general purpose C++ runtime system for parallel and distributed applications of any scale","fork":false,"url":"https://api.github.com/repos/STEllAR-GROUP/hpx","forks_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/forks","keys_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/teams","hooks_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/hooks","issue_events_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/issues/events{/number}","events_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/events","assignees_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/assignees{/user}","branches_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/branches{/branch}","tags_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/tags","blobs_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/git/refs{/sha}","trees_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/statuses/{sha}","languages_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/languages","stargazers_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/stargazers","contributors_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/contributors","subscribers_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/subscribers","subscription_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/subscription","commits_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/commits{/sha}","git_commits_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/git/commits{/sha}","comments_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/comments{/number}","issue_comment_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/issues/comments{/number}","contents_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/contents/{+path}","compare_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/merges","archive_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/downloads","issues_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/issues{/number}","pulls_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/pulls{/number}","milestones_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/milestones{/number}","notifications_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/labels{/name}","releases_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/releases{/id}","created_at":"2012-05-26T15:02:39Z","updated_at":"2015-02-27T12:51:55Z","pushed_at":"2015-02-27T12:51:55Z","git_url":"git://github.com/STEllAR-GROUP/hpx.git","ssh_url":"git@github.com:STEllAR-GROUP/hpx.git","clone_url":"https://github.com/STEllAR-GROUP/hpx.git","svn_url":"https://github.com/STEllAR-GROUP/hpx","homepage":"http://stellar-group.org/libraries/hpx","size":365388,"stargazers_count":221,"watchers_count":221,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":71,"mirror_url":null,"open_issues_count":73,"forks":71,"open_issues":73,"watchers":221,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/STEllAR-GROUP/hpx/pulls/1385"},"html":{"href":"https://github.com/STEllAR-GROUP/hpx/pull/1385"},"issue":{"href":"https://api.github.com/repos/STEllAR-GROUP/hpx/issues/1385"},"comments":{"href":"https://api.github.com/repos/STEllAR-GROUP/hpx/issues/1385/comments"},"review_comments":{"href":"https://api.github.com/repos/STEllAR-GROUP/hpx/pulls/1385/comments"},"review_comment":{"href":"https://api.github.com/repos/STEllAR-GROUP/hpx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/STEllAR-GROUP/hpx/pulls/1385/commits"},"statuses":{"href":"https://api.github.com/repos/STEllAR-GROUP/hpx/statuses/edf2c993b9d058eed8deee4d75a824f814fc7e3b"}}}}