logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: Why can't I static_cast a DOMElement* to a DOMNode* ?: msg#00040

Subject: Re: Why can't I static_cast a DOMElement* to a DOMNode* ?
Mike Oliver wrote:
DOMElement is derived from DOMNode, but to convert a DOMElement
pointer to a DOMNode pointer, I have to use a C-style cast.  Why?
Should I be worried about this?

Never mind -- I hadn't included the right header file.  The
only reason it wasn't a syntax error was that DOMElement
was forward-declared somewhere.




<Prev in Thread] Current Thread [Next in Thread>