This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Curious issue with char_traits
Paolo Carlini <pcarlini@suse.de> writes:
| Paolo Carlini wrote:
|
| >I think that specifically one of his proposed modifications would avoid
| >this problem: he wants to stop considering as associated namespaces
| >those of *template arguments*: I think that in your examples basically
| >the problem comes from the Traits argument of basic_string, which is
| >std::char_traits, which, in turn has __gnu_cxx::char_traits as a base,
| >thus __gnu_cxx is searched.
| >
| >Indeed, there are problems of backward compatibility, in my opinion too...
| >
| >
| ... his second modification, instead (the one most problematic from the
| point of view of backward compatibility, I think) would "fix" your first
| example, the one involving char_traits directly.
name lookup problems and their alleged fixes are tricky. I suggest
high cautious in any step.
-- Gaby