Вопрос 1:
Код: Выделить всё
CLass_A ob1 = CLass_A();
//so **the temporary object** will call the empty constructor
// i expected that it will also call the Copy constructor to pass
// the temporary object into the ob1
//like this pattern
CLass_A ob0;
CLass_A ob1 =ob0;
here wil call the copy
Код: Выделить всё
#include
class A {
public:
A(){std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79054667/temporary-object-and-copy-constructor[/url]