|
-
June 12th, 2012, 05:07 AM
#4
Re: Serious lack of OOP understanding. Dependencies in classes.
 Originally Posted by ImNotaBot
But what if I want to, or even have to, make use of valuetypes? E.g. in case of returning the type.
Code:
//void To169(CHand169 *ret) const;
CHand169 To169() const;
Then you should first reconsider your design. In your case, it seems like the conversion functions could easily be defined outside of the class scope, such that they can be in a separate file that includes the header files for both classes. The two classes then don't have to know anything about each other.
Cheers, D Drmmr
Please put [code][/code] tags around your code to preserve indentation and make it more readable.
As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|