Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VC Class wizard - implementation

Status
Not open for further replies.

pghsteelers

Technical User
Apr 21, 2006
121
US
I am trying to find out what the statement in a C++ book that is having me create a function member in a class but is asking me to do something else that I don't quite understand. It states:

"If you used the ClassWizard to add the operator function you will need to delete the implementation as it is added automatically."

I did create the class using the ClassWizard, but the part that is throwing me is the "delete the implementation". If the implementation isn't actually implementing the function member, what then is it meaning by implementation?

I don't know if I am leaving to much out for anyone to know, but they make it sound like the class wizard is creating "something else" besides the actual declaration of the function when using the ClassWizard.

Any thoughts?
 
all its saying is that when you use the classwizard to add the copy constructor and assignment operator to the private section of your class, it will automatically add the implimentation skeleton into the .cpp file

since you are only adding these functions for safety (to stop default versions being created and used), you can delete the skeleton code in the .cpp file.

If somethings hard to do, its not worth doing - Homer Simpson
 
Thank you, that was sort of what I was thinking, but I hate assuming. Thank you kindly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top