|
|
|
|
|
by cpeterso
5349 days ago
|
|
A subtle point that bit me, const functions should not read from pointer arguments, such as const char pointers. The pointed to data is external (to the const function) memory. Also, gcc does not seem to warn about reading eternal memory. It seems like this would be an easy error for the compiler to detect. |
|