{"action":"created","issue":{"url":"https://api.github.com/repos/ericniebler/range-v3/issues/109","labels_url":"https://api.github.com/repos/ericniebler/range-v3/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/ericniebler/range-v3/issues/109/comments","events_url":"https://api.github.com/repos/ericniebler/range-v3/issues/109/events","html_url":"https://github.com/ericniebler/range-v3/issues/109","id":59212286,"number":109,"title":"ranges::for_each with temporary view","user":{"login":"ddemidov","id":270503,"avatar_url":"https://avatars.githubusercontent.com/u/270503?v=3","gravatar_id":"","url":"https://api.github.com/users/ddemidov","html_url":"https://github.com/ddemidov","followers_url":"https://api.github.com/users/ddemidov/followers","following_url":"https://api.github.com/users/ddemidov/following{/other_user}","gists_url":"https://api.github.com/users/ddemidov/gists{/gist_id}","starred_url":"https://api.github.com/users/ddemidov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddemidov/subscriptions","organizations_url":"https://api.github.com/users/ddemidov/orgs","repos_url":"https://api.github.com/users/ddemidov/repos","events_url":"https://api.github.com/users/ddemidov/events{/privacy}","received_events_url":"https://api.github.com/users/ddemidov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-27T09:44:47Z","updated_at":"2015-02-27T18:23:15Z","closed_at":"2015-02-27T10:10:41Z","body":"This [example](https://gist.github.com/802fdc2503b1be181ad5) fails to compile with\r\n```\r\nfor_each_view.cpp:42:5: error: no matching function for call to object of type 'const\r\n      ranges::v3::for_each_fn'\r\n    ranges::for_each(\r\n    ^~~~~~~~~~~~~~~~\r\n/home/demidov/work/range-v3/include/range/v3/algorithm/for_each.hpp:50:15: note: \r\n      candidate function [with Rng = ranges::v3::take_view<counter>, F = (lambda at\r\n      for_each_view.cpp:44:13), P = ranges::v3::ident, I =\r\n      ranges::v3::basic_iterator<ranges::v3::detail::counted_cursor<ranges::v3::basic_iterator<counter::cursor,\r\n      ranges::v3::default_sentinel>, long>, ranges::v3::detail::counted_sentinel>,\r\n      _concept_requires_49 = 42, $5 = 0] not viable: expects an l-value for 1st argument\r\n            I operator()(Rng &rng, F fun, P proj = P{}) const\r\n              ^\r\n/home/demidov/work/range-v3/include/range/v3/algorithm/for_each.hpp:36:15: note: \r\n      candidate function template not viable: requires at least 3 arguments, but 2 were\r\n      provided\r\n            I operator()(I begin, S end, F fun_, P proj_ = P{}) const\r\n              ^\r\n1 error generated.\r\n```\r\n\r\nThis works with 9932cd6c889a24e5d33462f7706568d86edbdf2b, but the question is, is the behavior intended/am I missing something?"},"comment":{"url":"https://api.github.com/repos/ericniebler/range-v3/issues/comments/76444985","html_url":"https://github.com/ericniebler/range-v3/issues/109#issuecomment-76444985","issue_url":"https://api.github.com/repos/ericniebler/range-v3/issues/109","id":76444985,"user":{"login":"ericniebler","id":225757,"avatar_url":"https://avatars.githubusercontent.com/u/225757?v=3","gravatar_id":"","url":"https://api.github.com/users/ericniebler","html_url":"https://github.com/ericniebler","followers_url":"https://api.github.com/users/ericniebler/followers","following_url":"https://api.github.com/users/ericniebler/following{/other_user}","gists_url":"https://api.github.com/users/ericniebler/gists{/gist_id}","starred_url":"https://api.github.com/users/ericniebler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericniebler/subscriptions","organizations_url":"https://api.github.com/users/ericniebler/orgs","repos_url":"https://api.github.com/users/ericniebler/repos","events_url":"https://api.github.com/users/ericniebler/events{/privacy}","received_events_url":"https://api.github.com/users/ericniebler/received_events","type":"User","site_admin":false},"created_at":"2015-02-27T18:23:15Z","updated_at":"2015-02-27T18:23:15Z","body":"When I click that link, it takes me to <https://github.com/ericniebler/range-v3/commit/9932cd6c889a24e5d33462f7706568d86edbdf2b>. That is, it looks like a commit in my repo. I'm so confused."}}