fgerlits commented on code in PR #1419: URL: https://github.com/apache/nifi-minifi-cpp/pull/1419#discussion_r1005598035
########## libminifi/include/utils/StringUtils.h: ########## @@ -37,6 +37,19 @@ #include "utils/gsl.h" #include "utils/meta/detected.h" +// libc++ doesn't define operator<=> on strings, and apparently the operator rewrite rules don't automagically make one +#if defined(_LIBCPP_VERSION) && _LIBCPP_VERSION <= 14000 +#include <compare> +#endif + +#if defined(_LIBCPP_VERSION) && _LIBCPP_VERSION <= 14000 +template<typename _CharT, typename _Traits, typename _Alloc> +constexpr std::strong_ordering operator<=>(const std::basic_string<_CharT, _Traits, _Alloc>& __lhs, + const std::basic_string<_CharT, _Traits, _Alloc>& __rhs) noexcept { + return __lhs.compare(__rhs) <=> 0; +} +#endif Review Comment: it should be `< 16000`, not `<= 16000`, as Clang 16 will probably already have this fixed -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org