Class extStrSet inherits from class strSet. The following function down-casts from the former to the latter.
inline extStrSet& ss2extss (const strSet& ss)
{ return (extStrSet)&ss ; }
Can someone explain how the down-casting is accomplished by explaining each part of the expression in the return statement?
Also why is downcasting so dangerous, is it because of the additions of new variables and functions?
compsci91 0 Newbie Poster
raptr_dflo 48 Posting Pro
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.