Let us have a complex class with two double data member.
If I would like to copy it by reference
that means that I have two copy one or two pointers?
merse
0
Junior Poster
Recommended Answers
Jump to PostIn C++ term of reference or in general ?
You can do this :
Complex& Complex::getClass() { return *this; }
That way, you get the Complex class as a reference in terms of the reference operator.
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.