>> "using" clauses in header files are very dangerous and MUST be avoided.
>
> Why ? I've been doing it for 5+ years now, and never had any problem.
> It's not like we have our own "vector" class somewhere. And even then
> the compiler would complain.
The compiler won't complain, because it is valid. But in practice that
can lead to strange things as it completely defeat the purpose of
namespace: avoiding conflict.
No problem in a source file, but in a header file, never forget that
this propagates to any places that include said file.
Hub
Received on Thu Jun 28 21:32:53 2007
This archive was generated by hypermail 2.1.8 : Thu Jun 28 2007 - 21:32:53 CEST