Menu

#3 H225.cxx Operator Overloading

open
nobody
None
5
2001-04-24
2001-04-24
Anonymous
No

My question is about some programmation:

class H225_TransportAddress : public PASN_Choice from file h225.h & h225.cxx

If I have an H225_TransportAddress object, for example aaa is such an object.

How can I use the operator overloading
operator H225_TransportAddress_ipAddress &() const;

to get the H225_TransportAddress_ipAddress member of my "aaa" object ?

I tried many times like this

H225_TransportAddress aaa;
....

H225_TransportAddress_ipAddress bbb;
bbb = (H225_TransportAddress_ipAddress &) aaa

but it seems to be... wrong.

Perhaps that someone can help me because I never studied such overloading ...

Thank You Very Much

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.