f01048743a
Previously, in C++20 mode, using <=> on String8 or String16 would compare the pointer values from the implicit conversion operators returning const char* and const char16_t*. Instead, compare the string content. This is especially a problem with STL containers that prefer <=> when it is available. See https://godbolt.org/z/cc1hW17h3 for a demo of the problem. Bug: 339775405 Test: treehugger Change-Id: I5ee6af96dee0c9968a1bab1ad96729e45bb1ac50 |
||
---|---|---|
.. | ||
include/utils | ||
Android.bp | ||
Errors.cpp | ||
Errors_test.cpp | ||
FuzzFormatTypes.h | ||
RefBase.cpp | ||
RefBase_fuzz.cpp | ||
RefBase_test.cpp | ||
SharedBuffer.cpp | ||
SharedBuffer.h | ||
SharedBuffer_test.cpp | ||
String8.cpp | ||
String8_fuzz.cpp | ||
String8_test.cpp | ||
String16.cpp | ||
String16_fuzz.cpp | ||
String16_test.cpp | ||
StrongPointer.cpp | ||
StrongPointer_test.cpp | ||
Unicode.cpp | ||
Unicode_test.cpp | ||
Vector_benchmark.cpp | ||
Vector_fuzz.cpp | ||
Vector_test.cpp | ||
VectorImpl.cpp |