Add const where possible?

Sebastian Pipping <[email protected]>
Newsgroups gmane.text.xml.expat.general
Message-ID <[email protected]>
I remember seeing some places in Expat code
where adding a const would have been possible.
I mean for local variables, not in the interfaces.
Does anybody know bad effects of adding const modifiers?
On the pro side I see potentially helping the compiler
with optimizations and also making the code more
understandable. Any cons?

Thanks in advance,



Sebastian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.