C++ Logo


Advanced search

Subject: Re: [isocpp-core] Feature-test macro for ADL calls with template arguments?
From: Ville Voutilainen (ville.voutilainen_at_[hidden])
Date: 2020-06-08 17:17:27

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?

SG10 list run by sg10-owner@lists.isocpp.org