c9s / r3

libr3 is a high-performance path dispatching library. It compiles your route paths into a prefix tree (trie). By using the constructed prefix trie in the start-up time, you may dispatch your routes with efficiency
http://c9s.github.com/r3/bench.html
MIT License
814 stars 83 forks source link

Improve const-correctness #36

Closed elfring closed 10 years ago

elfring commented 10 years ago

I suggest to add the key word "const" to the type specifiers for parameters like the following.

Would you like to apply the advices from an article to more places in your source files?

c9s commented 10 years ago

agree, actually I applied some of them, but not all. I am very glad if we could apply a patch like this. :-)

c9s commented 10 years ago

consts were added. thanks for you suggestion!