:22:16: error: type/value mismatch at argument 1 in template parameter list for 'template struct Foo'
22 | Foo{};
| ^
:22:16: note: expected a constant of type 'int', got 'Args'
:22:16: note: so any instantiation with a non-empty parameter pack would be ill-formed
struct BB { int c = 10; }; int main(){ constexpr int8_t a = 10; Foo{}; Foo{}; float c = 11; bar(c + 11); } [/code] Я получил ошибку для строки Foo{};: [code]:22:16: error: type/value mismatch at argument 1 in template parameter list for 'template struct Foo' 22 | Foo{}; | ^ :22:16: note: expected a constant of type 'int', got 'Args' :22:16: note: so any instantiation with a non-empty parameter pack would be ill-formed [/code] Почему другой(); не завершится ошибкой?