DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4581>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4581

erroneous static cast in programming examples





------- Additional Comments From [EMAIL PROTECTED]  2001-11-02 19:27 -------
I would suggest:
  DefaultHandler *handler = new DefaultHandler();
and then use:
  parser->setErrorHandler(handler);
  parser->setContentHandler(handler);
Since the casts are from a derived pointer to a base pointer,
no casting should be necessary at all. This should not cause
any compiler errors and it has clearly defined behaviour.
Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to