Menu

#30 [PATCH] Remove 'using namespace std' from the code

Unstable_(example)
closed
nobody
None
5
2016-09-05
2016-09-03
No

The attached patch removes all occurrences of using namespace std from the .cpp files. None of them seem to be needed, as usage of functions and data structures from the standard library are already using std::. This fixes the build in C++11 mode (which Qt can end up forcing depending on how it was built or the mkspec used). For example, the call tobind() can lead to std::bind() being used instead:

Interpreter.cpp:4282:105: error: invalid operands to binary expression ('__bind<int &, sockaddr *, unsigned long>' and 'int')
1 Attachments

Discussion

  • Jim Reneau

    Jim Reneau - 2016-09-05
    • status: open --> closed
     
  • Jim Reneau

    Jim Reneau - 2016-09-05

    1.99.99.64 - changed

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.