I want to know if there is any difference between simple binary operator overloading and assignment operator overloading.
            Asked
            
        
        
            Active
            
        
            Viewed 66 times
        
    -7
            
            
        - 
                    Please fix your title and your shift key. – Borgleader May 20 '15 at 20:27
- 
                    http://stackoverflow.com/questions/4172722/what-is-the-rule-of-three I should have swung the dupe hammer in 1st place. – πάντα ῥεῖ May 20 '15 at 20:28
- 
                    [operator overloading](http://stackoverflow.com/questions/4421706/operator-overloading) – chris May 20 '15 at 20:30
1 Answers
3
            Here are two differences:
- An overloaded assignment operator must be a member of the class being assigned to; it cannot be declared as a free function.
- Copy and move assignment operators will be implicitly declared for your class if you do not declare them yourself (subject to certain restrictions).
 
    
    
        Brian Bi
        
- 111,498
- 10
- 176
- 312
 
    