Код: Выделить всё
#include
using namespace std;
// simple case, CTAD works
template
struct A {
A(const T&, int i =0) { cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79095568/class-template-argument-deduction-when-non-type-template-parameter-are-used[/url]