> The solution 1 (cast operator):
> class DOM_Node
> {
>       ...
>       operator DOM_Element(void);
> };
> 
> The solution 2 (cast constructor):
> class DOM_Element
> {
>       ...
>       DOM_Element (const DOM_Node&);
> };
> 

I think I would prefer the cast operator since that would most cleanly mimic the Java 
usage, allowing :

DOM_Element elem = (DOM_Element) node;

but disallowing:

DOM_Element elem = node;


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

Reply via email to