Copy constructor, why in return by value functions
- by fsdfa
Suppose i have:
http://pastebin.com/FSnzYFFx
Then I'll get a compile error in the last line. But if I add 'const' before 'A&', its ok.
I want to know why. Where it's exactly the problem?
I dont get why it should be const.
Language: C++