Talk About Network

Google





Programming > C - C++ Learning > Re: assigmnet o...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 6 Topic 4087 of 4400
Post > Topic >>

Re: assigmnet operator when class data members are immutable

by Ian Collins <ian-news@[EMAIL PROTECTED] > Mar 30, 2008 at 01:51 PM

chuck wrote:
> Hello,
>  I have a class whose data members are constant.  So, default assignment
> will not happen.  I am trying to write and assignment operator method
> that will allow assignment.
> 
If the data member are const, you can't change them, so you can't write
an assignment operator.

-- 
Ian Collins.
 




 6 Posts in Topic:
assigmnet operator when class data members are immutable
chuck <noemail@[EMAIL   2008-03-29 19:10:49 
Re: assigmnet operator when class data members are immutable
Ian Collins <ian-news@  2008-03-30 13:51:10 
Re: assigmnet operator when class data members are immutable
Ulrich Eckhardt <dooms  2008-03-30 07:51:32 
Re: assigmnet operator when class data members are immutable
Francis Glassborow <fr  2008-03-30 11:38:49 
Re: assigmnet operator when class data members are immutable
Ulrich Eckhardt <dooms  2008-03-30 18:18:38 
Re: assigmnet operator when class data members are immutable
Francis Glassborow <fr  2008-03-30 11:43:06 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 11:26:34 PST 2009.