{"action":"created","issue":{"url":"https://api.github.com/repos/cms-sw/cmssw/issues/11309","labels_url":"https://api.github.com/repos/cms-sw/cmssw/issues/11309/labels{/name}","comments_url":"https://api.github.com/repos/cms-sw/cmssw/issues/11309/comments","events_url":"https://api.github.com/repos/cms-sw/cmssw/issues/11309/events","html_url":"https://github.com/cms-sw/cmssw/pull/11309","id":106944361,"number":11309,"title":"Resolve issues with streams (getline(), stream to void *, etc)","user":{"login":"davidlt","id":197091,"avatar_url":"https://avatars.githubusercontent.com/u/197091?v=3","gravatar_id":"","url":"https://api.github.com/users/davidlt","html_url":"https://github.com/davidlt","followers_url":"https://api.github.com/users/davidlt/followers","following_url":"https://api.github.com/users/davidlt/following{/other_user}","gists_url":"https://api.github.com/users/davidlt/gists{/gist_id}","starred_url":"https://api.github.com/users/davidlt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidlt/subscriptions","organizations_url":"https://api.github.com/users/davidlt/orgs","repos_url":"https://api.github.com/users/davidlt/repos","events_url":"https://api.github.com/users/davidlt/events{/privacy}","received_events_url":"https://api.github.com/users/davidlt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cms-sw/cmssw/labels/alca-pending","name":"alca-pending","color":"fbca04"},{"url":"https://api.github.com/repos/cms-sw/cmssw/labels/comparison-pending","name":"comparison-pending","color":"fef2c0"},{"url":"https://api.github.com/repos/cms-sw/cmssw/labels/db-pending","name":"db-pending","color":"fbca04"},{"url":"https://api.github.com/repos/cms-sw/cmssw/labels/l1-approved","name":"l1-approved","color":"009800"},{"url":"https://api.github.com/repos/cms-sw/cmssw/labels/orp-pending","name":"orp-pending","color":"fbca04"},{"url":"https://api.github.com/repos/cms-sw/cmssw/labels/pending-signatures","name":"pending-signatures","color":"eb6420"},{"url":"https://api.github.com/repos/cms-sw/cmssw/labels/tests-approved","name":"tests-approved","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cms-sw/cmssw/milestones/55","html_url":"https://github.com/cms-sw/cmssw/milestones/Next%20CMSSW_7_6_X","labels_url":"https://api.github.com/repos/cms-sw/cmssw/milestones/55/labels","id":1176788,"number":55,"title":"Next CMSSW_7_6_X","description":"","creator":{"login":"smuzaffar","id":4115138,"avatar_url":"https://avatars.githubusercontent.com/u/4115138?v=3","gravatar_id":"","url":"https://api.github.com/users/smuzaffar","html_url":"https://github.com/smuzaffar","followers_url":"https://api.github.com/users/smuzaffar/followers","following_url":"https://api.github.com/users/smuzaffar/following{/other_user}","gists_url":"https://api.github.com/users/smuzaffar/gists{/gist_id}","starred_url":"https://api.github.com/users/smuzaffar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smuzaffar/subscriptions","organizations_url":"https://api.github.com/users/smuzaffar/orgs","repos_url":"https://api.github.com/users/smuzaffar/repos","events_url":"https://api.github.com/users/smuzaffar/events{/privacy}","received_events_url":"https://api.github.com/users/smuzaffar/received_events","type":"User","site_admin":false},"open_issues":83,"closed_issues":656,"state":"open","created_at":"2015-06-23T07:27:04Z","updated_at":"2015-09-17T10:51:08Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-09-17T09:23:41Z","updated_at":"2015-09-17T11:42:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cms-sw/cmssw/pulls/11309","html_url":"https://github.com/cms-sw/cmssw/pull/11309","diff_url":"https://github.com/cms-sw/cmssw/pull/11309.diff","patch_url":"https://github.com/cms-sw/cmssw/pull/11309.patch"},"body":"GCC 5.2.0 does not allow piping output stream into output stream, e.g.,\r\n`std::cout << std::cout`. There is no more impilicit conversion to `void\r\n*` since C++11.\r\n\r\n`std::getline()` returns `std::basic_istream` and implicit conversion to\r\n`void *` does not happen. Since C++11 you can use any function returning\r\nreferences to streams as loop conditions. This is because `explicit\r\noperator bool() const` was introduced since C++11.\r\n\r\nTo validate stream status you need to use `operator!`, `fail()`,\r\n`eof()`, `bad()` and friends from `std::basic_ios`.\r\n\r\nSigned-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>"},"comment":{"url":"https://api.github.com/repos/cms-sw/cmssw/issues/comments/141051247","html_url":"https://github.com/cms-sw/cmssw/pull/11309#issuecomment-141051247","issue_url":"https://api.github.com/repos/cms-sw/cmssw/issues/11309","id":141051247,"user":{"login":"cmsbuild","id":4170616,"avatar_url":"https://avatars.githubusercontent.com/u/4170616?v=3","gravatar_id":"","url":"https://api.github.com/users/cmsbuild","html_url":"https://github.com/cmsbuild","followers_url":"https://api.github.com/users/cmsbuild/followers","following_url":"https://api.github.com/users/cmsbuild/following{/other_user}","gists_url":"https://api.github.com/users/cmsbuild/gists{/gist_id}","starred_url":"https://api.github.com/users/cmsbuild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmsbuild/subscriptions","organizations_url":"https://api.github.com/users/cmsbuild/orgs","repos_url":"https://api.github.com/users/cmsbuild/repos","events_url":"https://api.github.com/users/cmsbuild/events{/privacy}","received_events_url":"https://api.github.com/users/cmsbuild/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T11:42:45Z","updated_at":"2015-09-17T11:42:45Z","body":"+1\nTested at: b084e9e6067cf7357287c7c56a337532667ba9d0\nhttps://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-11309/8154/summary.html"}}