Class template argument deduction not working with alias template

前端 未结 2 1380
南方客
南方客 2020-12-01 07:37

consider the code pasted below. I have defined a very simple class, for which the compiler generates an implicit deduction guide so it can be constructed without explicit t

2条回答
  •  时光说笑
    2020-12-01 08:26

    From http://en.cppreference.com/w/cpp/language/template_argument_deduction, "Alias templates are never deduced." So, it is by design.

提交回复
热议问题