When I declare a moving assignment and a friend function in the class, an error occurs at "return temp" on compilation. I donot know why.
Any reply would be appreciated.
Thanks.
@seeplus
Thanks.
I got it now.
When the moving assignment is defined, the default coyping constructor and copying assignment is removed.
And, "return *this;" in the moving operator actually calls the copying constructor or assignment which doesnot exist, so an error occurs on compilation.