Yeah, I'm talking about copy ctor. Why doesn't it it get called when the call is from parameter of the friend function?
— Main also tries to copy, to pass an argument
— Actually, I want to ask that where does the copy constructor called from ? Inside the main?
— Yes, to create an argument. Then in fun to create nbj. Then move ctor is called to crrate an object being returned
Message permanent page
— Can I say that cout is a stream?
— It is
— So, Just as cout is used as a stream between the program and the stdout, stringstream acts as stream between what 2 things?
— Program and string variable
— But isn't the string variable a part of the program?
— So? Not everything in program goes in cout
— Cout will copy the content of a variable into the stream and then the stream will feed it to the stdoutCan you describe stringstream in those terms for me?