mpusz / mp-units

The quantities and units library for C++
https://mpusz.github.io/mp-units/
MIT License
998 stars 79 forks source link

Allocator protocol support? #437

Closed mpusz closed 10 months ago

mpusz commented 1 year ago

In the light of https://wg21.link/p2047, should the quantity and quantity_point provide allocator protocol support? In other words, are there any important use cases for representation types that use dynamic allocation?

mpusz commented 1 year ago

FYI @johnmcfarlane, @mattkretz

mattkretz commented 1 year ago

Hmm, "BigInt" with allocator support? No idea, too be honest, whether that's a thing.

JohelEGP commented 1 year ago

We did not have consensus to continue pursuing the following papers:

-- Extract from https://www.reddit.com/r/cpp/comments/112ef9t/202302_issaquah_iso_c_committee_trip_report_c23/.

mpusz commented 1 year ago

Yes, I was there in the room when this proposal was discussed. It seems that we have plenty of people that love allocators and want to put them everywhere, and even more that hate them 😉

mpusz commented 10 months ago

We do not like allocators 😃