Date: Fri, 27 Sep 2019 17:08:23 +0200
On Fri, Sep 27, 2019 at 06:00:11PM +0300, Vladimir Grigoriev via Std-Discussion wrote:
> In the Standard in the section devoted to the deduction guide there is nothing said what template parameters may be used.
>
> So a question arises whether non-type template parameters can be used in a deduction guide? That is can a deduction guide deduce a non-type parameter? If not then the Standard should explicitly say about this restriction.
Same way you can deduce non-type template parameters in template
argument deduction for function templates.
Christof
> In the Standard in the section devoted to the deduction guide there is nothing said what template parameters may be used.
>
> So a question arises whether non-type template parameters can be used in a deduction guide? That is can a deduction guide deduce a non-type parameter? If not then the Standard should explicitly say about this restriction.
Same way you can deduce non-type template parameters in template
argument deduction for function templates.
Christof
-- http://cmeerw.org sip:cmeerw at cmeerw.org mailto:cmeerw at cmeerw.org xmpp:cmeerw at cmeerw.org
Received on 2019-09-27 10:10:54