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