On Mon, 8 Jun 2020 at 18:49, Marek Polacek <[email protected]> wrote: > > On Mon, Jun 08, 2020 at 12:02:28PM +0300, Ville Voutilainen via Core wrote: > > P0846 gives us the ability to do ADL for calls to function templates with > > explicit template arguments provided. Did we get a feature-testing macro > > for it? > > Doesn't seem that we have it.
For a rationale to consider having it: I have users who would like to write ADL-only structured bindings customization points and also allow them to be called with ADL calls; library folks call this a "hidden friend". When the macro is not defined, the fallback code would expose the customization point (or not provide it at all), but when it's defined, the customization point would be a hidden friend. Structured bindings seem to be able to call it anyway, but user code can't, before the language fix is implemented. -- SG10 mailing list [email protected] https://lists.isocpp.org/mailman/listinfo.cgi/sg10
