Subject: Re: [std-proposals] Remove restriction on deduction guides.
From: Ville Voutilainen (ville.voutilainen_at_[hidden])
Date: 2021-02-20 08:21:03
On Sat, 20 Feb 2021 at 16:14, Bengt Gustafsson via Std-Proposals
> PS: I just found on GodBoilt an experimental Clang version called NDSMI which allows auto and CTAD on data members. Does anyone know who did this and if it has a corresponding proposal? Such a feature would fit nicely with the relaxation I refer to here, to allow wrapping lambdas in member constructors and similar.
I think I can skate around this problem by applying the hammer of code
injection to this nail, by writing
a code injection metafunction that takes the initializer as an
argument, and then injects a member
of the result type of the initializer, and injects the initializer for
STD-PROPOSALS list run by firstname.lastname@example.org
Standard Proposals Archives on Google Groups