C++ Logo

std-discussion

Advanced search

Re: deduction guide: non-type template parameters.

From: Timur Doumler <cpp_at_[hidden]>
Date: Fri, 27 Sep 2019 16:57:21 +0100
Yes, it can, and it already does: there is an explicit deduction guide for std::array that deduces the array size.

Cheers,
Timur

> 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

Received on 2019-09-27 10:59:33