mattreecebentley / plf_list

A drop-in replacement for std::list with 293% faster insertion, 57% faster erasure, 17% faster iteration and 77% faster sorting on average. 20-24% speed increase in use-case testing.
https://plflib.org/list.htm
zlib License
151 stars 21 forks source link

Add missing PLF_IS_ALWAYS_EQUAL_SUPPORT checks #32

Closed valgur closed 4 months ago

valgur commented 4 months ago

Ensures that all std::allocator_traits<allocator_type>::is_always_equal::value uses are wrapped in a PLF_IS_ALWAYS_EQUAL_SUPPORT check.

Compilation with GCC 5 fails otherwise: https://github.com/conan-io/conan-center-index/pull/22715#issuecomment-2227910511

mattreecebentley commented 4 months ago

Hi there - thanks for that. I'm going to streamline it a bit since type traits are always available when is_always_equal is available on all the compilers I've got listed in the header. If you can think of any situations where that would not be the case, let me know. But you'll get the credit :)