C++ Logo


Advanced search

Subject: Re: deduction guide: non-type template parameters.
From: Timur Doumler (cpp_at_[hidden])
Date: 2019-09-27 10:57:21

Yes, it can, and it already does: there is an explicit deduction guide for std::array that deduces the array size.


> On 27 Sep 2019, at 16:00, Vladimir Grigoriev via Std-Discussion <std-discussion_at_[hidden]> 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.
> With best regards,
> Vlad from Moscow
> You can meet me at http://cpp.forum24.ru/ or www.stackoverflow.com or http://ru.stackoverflow.com
> --
> Std-Discussion mailing list
> Std-Discussion_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-discussion

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

Older Archives on Google Groups