Код: Выделить всё
#include
class B
{
public:
B()
{
x = 5;
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79277335/passing-temporary-object-for-initializing-reference-member-variable[/url]Код: Выделить всё
#include
class B
{
public:
B()
{
x = 5;
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79277335/passing-temporary-object-for-initializing-reference-member-variable[/url]