Re: [libxml++] Const correctness of write_to_...



Hi Loïc,


Loïc Joly a écrit :
> > Is there any reason why the xmlpp::Document::write_to_... functions are not const ? I have a const refrence to an object that contains a xmlpp::Document, and I have to use ugly const_cast to be able to do what seems to me to be a non-modifying operation.
> >

I don't think there is a particular reason for that.
A patch to add (not replace) const versions of write_to_ functions would
certainly be applied.

Regards,

Christophe




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]