> 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]
- Re: Casting DOM_Node to DOM_Element... still... Ryan Koss
- Re: Casting DOM_Node to DOM_Element... s... Andy Heninger
- Re: Casting DOM_Node to DOM_Element... Ryan Koss
- RE: Casting DOM_Node to DOM_Element Sean Forde
- Re: Casting DOM_Node to DOM_Element Jason E. Stewart
- Re: Casting DOM_Node to DOM_Element Andy Heninger
- RE: Casting DOM_Node to DOM_Element David_N_Bertoni
- RE: Casting DOM_Node to DOM_Element peiyongz
- RE: Casting DOM_Node to DOM_Element David_N_Bertoni
- RE: Casting DOM_Node to DOM_Element peiyongz
- Arnold, Curt
