Message from C, C++ discussions

January 2020

— Why...

— 

I read that The out is of type std::ostream. This can not be copied (the copy constructor is disabled). So you need to pass by reference.

— Cppreference.com

— So?

— So, wanted to see how the copy constructor looks inside the ostream class

— What does disabled mean?

— There's no copy constructor

— So the default one runs right?

— It is deleted or privated

— No, it is explicitly deleted

— For example:

ostream(const ostream&) = delete;

— Aah !! i didn't know that.