Hey Kup, I'm wondering if I can beg your help once again.
Do you have any links to good articles on the use of reference types in C++? (I.E., the use of parameters or variables declared with the & reference-of operator, like int&.)
Specifically, I'm wondering how reference types to base/derived classes work, and if reference types to base classes are compatible with their derived classes, but any detailed info on the subject would be great. I've been looking on Google but can't seem to find much beyond "pass-by-value vs. pass-by-reference" stuff.
I knew I should have bought that damn Stroustrop book, but it was sixty bucks and I'm a little light on funds this month.
I swear I want to go back to school and try to write a compiler at some point, for all the problems I'm having, this is kind of fun.
Do you have any links to good articles on the use of reference types in C++? (I.E., the use of parameters or variables declared with the & reference-of operator, like int&.)
Specifically, I'm wondering how reference types to base/derived classes work, and if reference types to base classes are compatible with their derived classes, but any detailed info on the subject would be great. I've been looking on Google but can't seem to find much beyond "pass-by-value vs. pass-by-reference" stuff.
I knew I should have bought that damn Stroustrop book, but it was sixty bucks and I'm a little light on funds this month.
I swear I want to go back to school and try to write a compiler at some point, for all the problems I'm having, this is kind of fun.