Re: To "const char *" and cast on free(), or "char *" and no cast...
From: Junio C Hamano <hidden> Date: 2021-10-15 16:00:23
Phillip Wood [off-list ref] writes:
If it was just the destructor that was free()'ing the values I'd agree
but the struct gets mutated in other places as well.
Oh, if the members are meant to be mutated by the users (as opposed
to the implementation) of the API around the type, I would agree
that we'd be much better off having them non-const.
Thanks.