On Feb 14, 2012, at 7:41 PM, Howard Hinnant <[email protected]> wrote:
> void
> __split_buffer<_Tp, _Allocator>::__destruct_at_begin(pointer __new_begin,
> false_type)
> {
> - while (__begin_ < __new_begin)
> + while (__begin_ != __new_begin)
> __alloc_traits::destroy(__alloc(), __begin_++);
> }
Howard,
Are there other places in libcxx where we should replace relational pointer
comparisons with equality pointer comparisons?
Also, what does the latest C++ specification say about what compilers may or
may not do with relational pointer comparisons? What does clang do? I've been
searching the web and I don't feel like I've found a solid answer yet.
davez
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits