Код: Выделить всё
template struct StrStuff {
explicit StrStuff(char const(&...s)[n]) {}
};
int main() {
StrStuff g("apple", "pie");
}
< /code>
x86 MSVC V19.43 VS17.13 Жаления: < /p>
error C3520: 'n': parameter pack must be expanded in this context
error C3543: 'const char (&)[0]': does not contain a parameter
Подробнее здесь: https://stackoverflow.com/questions/797 ... 3520-c3543
Мобильная версия