Код: Выделить всё
#include
auto a1 = std::array{1};
auto a2 = std::array{std::array{1}};
static_assert(std::same_as); // passes
static_assert(std::same_as); // passes, but I expect this to fail
Подробнее здесь: https://stackoverflow.com/questions/796 ... esult-in-a
Мобильная версия