|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2003-08-06 14:09:50
"Fernando Cacciola" <fernando_cacciola_at_[hidden]> writes:
>>and anyway I don't see how it could help if you want to
>> specialize something in std. Am I missing something?
>>
> If the specialization is injected into 'std' via
> a using directive, as in
>
> namespace std { using namespace stdx ; }
>
> the problem goes away (the primary swap<> is now found).
Err, no. Koenig lookup doesn't proceed through using directives.
namespace std { using stdx::swap; }
works.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk