C++ Logo

sg10

Advanced search

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

From: Gabriel Dos Reis <gdr_at_[hidden]>
Date: Mon, 8 Jun 2020 23:03:40 +0000


| -----Original Message-----
| From: Ville Voutilainen <ville.voutilainen_at_gmail.com>
| Sent: Monday, June 8, 2020 3:17 PM
| To: Gabriel Dos Reis <gdr_at_[hidden]>
| Cc: Richard Smith <richardsmith_at_[hidden]>; sg10_at_lists.isocpp.org; Marek
| Polacek <polacek_at_[hidden]>; core_at_lists.isocpp.org
| Subject: Re: [SG10] [isocpp-core] Feature-test macro for ADL calls with
| template arguments?
|
| On Tue, 9 Jun 2020 at 00:48, Gabriel Dos Reis <gdr_at_microsoft.com> 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.

Which means you have "somewhere"...

|
| Any other questions, before we just add the macro?

Yes, which document would that apply to? 😊
The one voted out of Prague, that some compilers are close to declaring conformance to? Or just the SD?

-- Gaby

Received on 2020-06-08 18:06:50