Timeline for What's the problem with "using namespace std;"?
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 31, 2018 at 4:52 | comment | added | Tien Do | When I see cout I know it's std::cout, always. If I'm wrong, it's problem of person who wrote this code, not me :) | |
Mar 29, 2018 at 12:47 | history | edited | Azeem | CC BY-SA 3.0 |
Formatted keywords
|
Jul 7, 2016 at 4:33 | comment | added | Jeremy Friesner | If someone has redefined std::cout to be an integer, then your problem isn't technical, but social -- someone has it in for you. (and you should probably also check all of the headers for things like #define true false, etc) | |
Jun 11, 2015 at 12:43 | comment | added | nyholku | How do you know "std::cout << 1" isn't reading a static int named cout in std namespace shifting it by one and throwing away result? Also how do you know what "<<" does ;) ??? ... seems like this answer is not good data point to avoid 'using'. | |
Mar 26, 2015 at 3:25 | history | edited | sbi | CC BY-SA 3.0 |
added 1 character in body
|
Mar 13, 2014 at 17:22 | history | answered | gnasher729 | CC BY-SA 3.0 |