Constifying is a very good thing, and something I would very much like to see done.
A question for people who have knowledge in C ABI: is it possible to have something like these:
void func(someStruct *foo) void func(const someStruct *foo)
in the same dynamic library without clashes?
If yes, then the change can be made without breaking ABI by adding the const function and making the non-const call the const one.
Constifying is a very good thing, and something I would very much like to see done.
A question for people who have knowledge in C ABI: is it possible to have something like these:
void func(someStruct *foo)
void func(const someStruct *foo)
in the same dynamic library without clashes?
If yes, then the change can be made without breaking ABI by adding the const function and making the non-const call the const one.