Closed 1410rlH closed 4 years ago
Though this adds flexibility, it would also remove flexibility for custom allocators and custom comparators, right?
Yea, kinda. But otherwise those templates are useless.
On Tue, Mar 31, 2020, 13:53 Niels Lohmann notifications@github.com wrote:
Though this adds flexibility, it would also remove flexibility for custom allocators and custom comparators, right?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nlohmann/json/issues/2013#issuecomment-606551502, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOOWHVQ2OEFT2NYXRTJLN6DRKHDULANCNFSM4LUJ342A .
As this would break the API, I cannot introduce the change without more benefits. Sorry.
Custom
ObjectTypes
are in hard limits:I suggest changing the following line with some metaprogramming or using only Key and Value: