missing std::sort on clang 12
malytomas opened this issue · 1 comments
malytomas commented
/home/runner/work/cage/cage/externals/plf/plf_list/plf_list.h:2790:4: error: no member named 'sort' in namespace 'std'; did you mean simply 'sort'?
PLF_SORT_FUNCTION(node_pointers, node_pointer, sort_dereferencer<comparison_function>(compare));
^~~~~~~~~~~~~~~~~
sort
/home/runner/work/cage/cage/externals/plf/plf_list/plf_list.h:231:28: note: expanded from macro 'PLF_SORT_FUNCTION'
#define PLF_SORT_FUNCTION std::sort
^~~~~
Error appears when compiling with clang 12 or clang 13. Otherwise clang 14 and clang 15 are passing.
I assume it is missing the include algorithm. The preprocesor if looks suspicious to me.
Line 235 in e50f3c5
The PLF_SORT_FUNCTION is defined few lines above, and the PLF_CPP20_SUPPORT is not defined.
mattreecebentley commented
Should be fixed now, thanks-