C++ Logo


Advanced search

Subject: Re: deduction guide: non-type template parameters.
From: Christof Meerwald (cmeerw_at_[hidden])
Date: 2019-09-27 10:08:23

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.


http://cmeerw.org                              sip:cmeerw at cmeerw.org
mailto:cmeerw at cmeerw.org                   xmpp:cmeerw at cmeerw.org

STD-DISCUSSION list run by herb.sutter at gmail.com

Older Archives on Google Groups