ссылка на следующий пример
https://godbolt.org/z/z8pn9gstv
Код: Выделить всё
template
struct A1 {
A1() {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/72269321/under-clang-why-does-swapping-the-order-of-declarations-of-prospective-destruct[/url]
Мобильная версия