On Tue, 9 Jun 2020 at 03:55, Peter Dimov <[email protected]> wrote:
>
> Ville Voutilainen wrote:
>
> > And *callers* do no using-declarations, and no ifdeffing.
>
> This will only work if get<> is visible to normal lookup. (Well it works
> under Clang, with a warning that it's C++20 only.)
> https://godbolt.org/z/Z3LkwJ

So? John's work-around makes get<> visible to normal lookup, thus:
https://godbolt.org/z/Zvqjze

With C++20 in hand, the work-around can be removed. Targeting both
C++20 and earlier standard versions,
I'd need to know when to include the work-around and when not. So how
about giving me a feature-testing
macro for that?
-- 
SG10 mailing list
[email protected]
https://lists.isocpp.org/mailman/listinfo.cgi/sg10

Reply via email to