|
|
|
|
|
by luser001
4904 days ago
|
|
I used to do this. But then I realized I would be importing all symbols from std into my code. Including ones that might get defined in the future (similar to python's 'from foo import *'), which might conflict with some of my own symbols. Hence, I now implicitly import each symbol I need with something like 'using std::map;' (similar to python's 'from foo import bar, bar2'). I've found that the 'using' statement can be used even inside a function to restrict the importation to just a single function. FYI. |
|
I not so fondly remember a day hunting down a cryptic C compiler error coming from some header that had
replacing F1 in my file by some cryptic mess...