[vlc-devel] [vlc-commits] Remove using namespace std; from C++ code

Rémi Denis-Courmont remi at remlab.net
Mon Jun 22 16:46:51 CEST 2015


Le 2015-06-22 17:44, Tristan Matthews a écrit :
>> If we need to depend on a library that has "using namespace std;"
>> in its public header, then what?
>
> Not that I disagree with earlier points, but said library would be
> acting crazy. Putting "using namespace std" in a header is extremely
> bad form, especially in a librarys public header.

But that works the other way too: LibVLC cannot depend on the external 
plugins using or not using the std namespace. It must work in both 
cases.

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list