Subject: Re: To "const char *" and cast on free(), or "char *" and no cast...

From: Junio C Hamano <[email-masked]>
Date: Fri, 15 Oct 2021 09:00:16 -0700

Phillip Wood <[email-masked]> 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.