[libxml++] _private field
- From: Christophe de Vienne <cdevienne alphacent com>
- To: libxmlplusplus-general lists sourceforge net
- Subject: [libxml++] _private field
- Date: Fri, 7 Feb 2003 00:07:38 +0100
Good evening,
I have a small doubt :
Initialising the _private field of xmlNode structures is done this way (for
element in the exemple) :
node->_private = new xmlpp::Element(node);
so the xmlpp::Element pointer is stored in a void *.
when reading it in destruct, the _private field is cast to a Node * for
deletion.
At _private initialisation, shouldn't the pointer cast to Node * before being
cast to void *, since we have some virtual functions ?
Or would it be the case only if Element herit virtualy from Node ?
Comments/lights appreciated.
Christophe
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]