C++ Logo

sg10

Advanced search

Re: [SG10] [isocpp-core] Feature-test macro for ADL calls with template arguments?

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Tue, 9 Jun 2020 01:17:27 +0300
On Tue, 9 Jun 2020 at 00:48, Gabriel Dos Reis <gdr_at_[hidden]> wrote:
> | All we want is to be able to write QPair<What, Ever> qp; get<1>(qp);
> |
> | I don't know what that "somewhere" would be, nor do I know why I'd
> | write a using-declaration for somewhere::get.
>
> For the configuration of Qt that does not use namespaces, there is no "somewhere"; name lookup just finds it.

Sure. And now we want to make it ADL-only, so that it's found only
when it's applied to the right thing.

Any other questions, before we just add the macro?

Received on 2020-06-08 17:20:47