Код: Выделить всё
#include
int main() {
[]() [[noreturn]] { std::exit(1); }();
return 0;
}
< /code>
clang 3.5 отклоняет его с помощью: < /p>
error: 'noreturn' attribute cannot be applied to types
Какой из них прав? Нортерн .
Подробнее здесь: https://stackoverflow.com/questions/268 ... s-noreturn
Мобильная версия