Menu

#1 Improve const-correctness

open
nobody
None
5
2012-12-30
2007-02-21
No

Would you like to apply the advices from the article "http://en.wikipedia.org/wiki/Const-correctness" to more places in your sources?
I suggest to add the key word "const" to the type specifiers for parameters like the following.
http://extace.cvs.sourceforge.net/extace/extace/include/configfile.h?revision=1.1&view=markup
cfg, filename (function "cfg_write_file")
section, key, gfloat (function "cfg_write_float")

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.