DescriptionAdd missing operator<() to CFX_RetainPtr.
Use std::less<>() rather than a direct ptr1 < ptr2 comparison to
be strictly correct in face of unspecified behaviour when ptr1 and
ptr2 don't point within the same "object" (e.g. segment of memory
on a brain-dead segmented architecture).
This will allow their use as keys in maps.
Review-Url: https://codereview.chromium.org/2616683002
Committed: https://pdfium.googlesource.com/pdfium/+/dc39e377e1a3923e63569020beb29f9662c1a3ee
Patch Set 1 #
Messages
Total messages: 14 (10 generated)
|