Subject: Re: [boost] [Bug Sprint] [variant] #2839 ambiguous swap call
From: Gevorg Voskanyan (v_gevorg_at_[hidden])
Date: 2009-06-04 07:36:16


Joseph Gauterin wrote:
> >The real problem is that arbitrary user
> >defined types can have namespace std as an associated namespace.
> How can that happen? Do you mean users specializing std::swap for a
> user defined type?

template < typename T >
class user_template;

typedef user_template< std::string > user_type;

Here user_type has std as (one of) its associated namespace.
This is one example, there are other cases as well...

HTH,
Gevorg