{"action":"created","issue":{"url":"https://api.github.com/repos/gunrock/gunrock/issues/22","labels_url":"https://api.github.com/repos/gunrock/gunrock/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/gunrock/gunrock/issues/22/comments","events_url":"https://api.github.com/repos/gunrock/gunrock/issues/22/events","html_url":"https://github.com/gunrock/gunrock/issues/22","id":74146602,"number":22,"title":"__any / __all conflicts / please only include the std:: things we need","user":{"login":"jowens","id":976970,"avatar_url":"https://avatars.githubusercontent.com/u/976970?v=3","gravatar_id":"","url":"https://api.github.com/users/jowens","html_url":"https://github.com/jowens","followers_url":"https://api.github.com/users/jowens/followers","following_url":"https://api.github.com/users/jowens/following{/other_user}","gists_url":"https://api.github.com/users/jowens/gists{/gist_id}","starred_url":"https://api.github.com/users/jowens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jowens/subscriptions","organizations_url":"https://api.github.com/users/jowens/orgs","repos_url":"https://api.github.com/users/jowens/repos","events_url":"https://api.github.com/users/jowens/events{/privacy}","received_events_url":"https://api.github.com/users/jowens/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ydwu","id":6426433,"avatar_url":"https://avatars.githubusercontent.com/u/6426433?v=3","gravatar_id":"","url":"https://api.github.com/users/ydwu","html_url":"https://github.com/ydwu","followers_url":"https://api.github.com/users/ydwu/followers","following_url":"https://api.github.com/users/ydwu/following{/other_user}","gists_url":"https://api.github.com/users/ydwu/gists{/gist_id}","starred_url":"https://api.github.com/users/ydwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ydwu/subscriptions","organizations_url":"https://api.github.com/users/ydwu/orgs","repos_url":"https://api.github.com/users/ydwu/repos","events_url":"https://api.github.com/users/ydwu/events{/privacy}","received_events_url":"https://api.github.com/users/ydwu/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-05-07T22:20:31Z","updated_at":"2015-05-08T03:50:53Z","closed_at":null,"body":"@ydwu @yzhwang Can you narrow down the \"using namespace std\" directive? Import only the symbols we need, not the whole namespace? \r\n\r\nhttps://isocpp.org/wiki/faq/coding-standards#using-namespace-std\r\n\r\ne.g. \"using std::cout\" ?\r\n\r\nCliff says:\r\n\r\n> Hi John,\r\n> \r\n> Further insight from our compiler team:\r\n> \r\n> This ambiguity occurs because the user code introduces names from the std namespace in global scope with a \"using\" directive:\r\n> 27 \"/Users/jowens/Documents/working/gunrock/gunrock/csr.cuh\" 2\r\n> using namespace std;\r\n> \r\n> To avoid the ambiguity error, the user can explicitly qualify the use of __any and __all with scope resolution operator (\"::\").\r\n> i.e. old code:\r\n> 599 \"/Users/jowens/Documents/working/gunrock/externals/cub/cub/block/../util_ptx.cuh\"\r\n>    return __any(cond);\r\n> \r\n> 573 \"/Users/jowens/Documents/working/gunrock/externals/cub/cub/block/../util_ptx.cuh\"\r\n>    return __all(cond);\r\n> \r\n> code with fix:\r\n> 599 \"/Users/jowens/Documents/working/gunrock/externals/cub/cub/block/../util_ptx.cuh\"\r\n>    return ::__any(cond);\r\n> \r\n> 573 \"/Users/jowens/Documents/working/gunrock/externals/cub/cub/block/../util_ptx.cuh\"\r\n>    return ::__all(cond);\r\n> \r\n> Can you please try this out and let us know if that takes care of it?  If so, I'll ask Duane to apply the same fix to CUB as well.\r\n> \r\n> Thanks,\r\n> Cliff"},"comment":{"url":"https://api.github.com/repos/gunrock/gunrock/issues/comments/100094156","html_url":"https://github.com/gunrock/gunrock/issues/22#issuecomment-100094156","issue_url":"https://api.github.com/repos/gunrock/gunrock/issues/22","id":100094156,"user":{"login":"ydwu","id":6426433,"avatar_url":"https://avatars.githubusercontent.com/u/6426433?v=3","gravatar_id":"","url":"https://api.github.com/users/ydwu","html_url":"https://github.com/ydwu","followers_url":"https://api.github.com/users/ydwu/followers","following_url":"https://api.github.com/users/ydwu/following{/other_user}","gists_url":"https://api.github.com/users/ydwu/gists{/gist_id}","starred_url":"https://api.github.com/users/ydwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ydwu/subscriptions","organizations_url":"https://api.github.com/users/ydwu/orgs","repos_url":"https://api.github.com/users/ydwu/repos","events_url":"https://api.github.com/users/ydwu/events{/privacy}","received_events_url":"https://api.github.com/users/ydwu/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T03:50:53Z","updated_at":"2015-05-08T03:50:53Z","body":"Perhaps I didn't understand the problem well, I eliminated importing whole namespace std in the commit: [1380f62e6e746f3bf5e7011e4dc19fc80844fcdb](https://github.com/gunrock/gunrock/commit/1380f62e6e746f3bf5e7011e4dc19fc80844fcdb), does this corresponding to \"rather than the whole namespace\"? "}}