Skip to content

Make KMime::Content list API also const-correct

Volker Krause requested to merge work/vkrause/const-correct-list-api into master

That is, return lists of const pointers when called on a const instance. This is done by returning const views on the actual lists in the const case.

Experimental and incomplete, only validating the general approach for now. Needs C++23, has potentially far-reaching impact on consumer code both regarding build breakage and more subtle runtime breakage, etc.

Merge request reports