Re: [Libxmlplusplus-general] node.cc
- From: murrayc t-online de (Murray Cumming)
- To: libxml++ <libxmlplusplus-general lists sourceforge net>
- Subject: Re: [Libxmlplusplus-general] node.cc
- Date: 16 Nov 2002 14:51:13 +0100
On Sat, 2002-11-16 at 14:48, Christophe de Vienne wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> It's ok I understood. Sorry for disturbing...
>
> On Samedi 16 Novembre 2002 14:46, Christophe de Vienne wrote:
> > Hi murray,
> >
> > Changing property to attribute in the code, I found this, which I do not
> > understand :
> >
> > 240 const Attribute * Node::property(const std::string& n) const
> > 241 {
> > 242 return const_cast<Node *>(this)->property(n);
> > 243 }
> >
> > How this method is supposed to return one day the good result ?
To avoid confusion in future, it would be better to use const_cast<> and
add a comment. Also, I don't think the "this" is necessary.
--
Murray Cumming
murray usa net
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]