Capital-Asterisk / longeronpp

"Longeron++" C++17 library for simple memory-efficient or 'data-oriented' structures
MIT License
32 stars 4 forks source link

Allow hetrogenius indexing of RefCount::operator[] #13

Closed jonesmz closed 2 years ago

Capital-Asterisk commented 2 years ago

The RefCount class should not be dealing with enum class IDs or other types. There exists the IdRefCount class below it for that purpose (which does the opposite and restricts types instead of allowing all).

Since RefCount is just an std::vector with a bit of bloat, I'll probably end up getting rid of it soon.