[Bug c++/32944] operator= not ambiguous overload but does not compile

Dallas at ekkySoftware dot com gcc-bugzilla@gcc.gnu.org
Wed Aug 1 00:14:00 GMT 2007



------- Comment #2 from Dallas at ekkySoftware dot com  2007-08-01 00:14 -------
The reason I was passing the reference and not the value is because is some
circumstances I can change the value of the parameter. Using the const keyword
prevents me from calling methods that can change the value – even if in this
example they do not.

Thanks,
Dallas Clarke

BSc (CS) LLB UNSW
Architect / Lead Developer 
Ekky Software


Website: http://www.ekkySoftware.com 


-- 

Dallas at ekkySoftware dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32944



More information about the Gcc-bugs mailing list