[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-freeqt
Subject:    Re: [freeqt] Harmony and RH5.1
From:       Christian Boos <boos () arthur ! u-strasbg ! fr>
Date:       1998-10-20 12:09:59
[Download RAW message or body]

Jo Dillon writes:
 > Oh, I see what you're getting at. Hmm. Would that not conflict with any
 > program which defined its own string, vector or whatever without putting it
 > in a namespace?

IMHO, namespaces are not there for the pleasure of putting "std::" in
front of everything. Namespaces should not be visible, unless they are
needed for resolving a name clash. 

If you need your own "vector" class, and, as you suggested, you don't 
put it in a namespace, then it falls in the global namespace (::vector).
This is not even possible now considering the previously discussed 
egcs bug/feature (because ::vector is already defined).

But ever if you could define your own ::vector, and if at the same
time you need the std::vector, then you can always designate the STL
one using explicitely the std:: prefix.

Not a big deal.,, but putting HARMONY_STD all over the place is not
only a pain, but it is also misleading (see Stephan's answer).


-- Christian

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic