[Bug libstdc++/60448] swap_ranges does not use ADL correctly

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 6 15:02:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60448

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Alisdair Meredith from comment #1)
> Created attachment 32287 [details]
> Cleaner tagging scheme for the local class
> 
> Simplified the example to more directly expose the local class via ADL
> without any funky casts.

Clang and G++ both reject this because the swap call is ambiguous



More information about the Gcc-bugs mailing list