I'm getting a static analysis warning on the following code. I don't think it could be my error, but I guess it's more likely a static analysis false positive than a C++ standard library bug. The warning says Method called on moved-from object of type 'std::basic_string'. Tested in Xcode 26.5 RC. Reported as FB22735405. #include #include #include #include template < class traits = std::char_traits, class Allocator = std::allocator > struct UTF8StringLess { bool operator()( const std::basic_string& inFirst, const std::basic_string& inSecond ) const; }; template inline bool UTF8StringLess::operator()( const std::basic_string& inFirst, const std::basic_string& inSecond ) const { CFStringRef theFirst = ::CFStringCreateWithCString( nullptr, inFirst.c_str(), kCFStringEncodingUTF8 ); CFStringRef theSecond = ::CFStringCreateWithCString( nullptr, inSecond.c_str(), kCFStringEncodingUTF8 ); CFComparisonResult compResult = ::CFStringCompare( theFirst, theSecond, kCFCompareCaseInsensitiv
6
0
67