comparing ptrs/mmap

D

Dave Thompson

If the UB is no worse than yielding false _positive_ matches. If it
gives false negatives, this fails.

It can't give false negatives. If the pointer does point into the
object, the < and > comparisons are not undefined, so they must give
the corect (positive) result.
[/QUOTE]
Oops! You're right, I didn't think that through.

- David.Thompson1 at worldnet.att.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,781
Messages
2,569,615
Members
45,303
Latest member
Ketonara

Latest Threads

Top