@ZombineDev created dlang/phobos pull request #7231 "Fix issues 20301 and 20302" fixing this issue:
- Fix issue 20302 - Support head const in memoize
Make std.functional.memoize accept functions whose return type or
parameters are head const.
https://github.com/dlang/phobos/pull/7231
Comment #2 by dlang-bot — 2019-10-19T06:04:40Z
dlang/phobos pull request #7231 "Fix issues 20301 and 20302" was merged into stable:
- 52bf1876f7efaed360ab5daa394fa81464b7c6e2 by ZombineDev:
Fix issue 20302 - Support head const in memoize
Make std.functional.memoize accept functions whose return type or
parameters are head const.
https://github.com/dlang/phobos/pull/7231