Мне просто интересно, почему следующий код компилирует тогда: < /p>
Код: Выделить всё
constinit std::string str = "Hello";
Подробнее здесь: https://stackoverflow.com/questions/790 ... init-forbi
Код: Выделить всё
constinit std::string str = "Hello";