Re: [committed] libstdc++: Use function object for __decay_copy helper

2021-06-16 Thread Jonathan Wakely via Gcc-patches
On Tue, 15 Jun 2021 at 19:28, Jonathan Wakely wrote: > > By changing __cust_access::__decay_copy from a function template to a > function object we avoid ADL. That means it's fine to call it > unqualified (the compiler won't waste time doing ADL in associated > namespaces, and won't try to complete

[committed] libstdc++: Use function object for __decay_copy helper

2021-06-15 Thread Jonathan Wakely via Gcc-patches
By changing __cust_access::__decay_copy from a function template to a function object we avoid ADL. That means it's fine to call it unqualified (the compiler won't waste time doing ADL in associated namespaces, and won't try to complete associated types). This also makes some other minor simplicat