teslamotors / fixed-containers

C++ Fixed Containers
MIT License
395 stars 38 forks source link

libc++ doesn't support `std::map<int, const int&>` #30

Closed Quuxplusone closed 1 year ago

Quuxplusone commented 1 year ago

Specifically, the assignment s_copy = s; doesn't work, because it's trying to use the assignment operator of a pair where one of the members has reference type. Classes with reference members have their assignment operators defaulted as deleted.

alexkaratarakis commented 1 year ago

Thank you! I amended to guard another instance of this.