Код: Выделить всё
#include
struct Data {
Data(int v = 0) : val(v) {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79762032/extending-the-lifetime-of-a-temporary-object-by-binding-to-its-subobject[/url]Код: Выделить всё
#include
struct Data {
Data(int v = 0) : val(v) {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79762032/extending-the-lifetime-of-a-temporary-object-by-binding-to-its-subobject[/url]