[cfe-commits] [libcxx] r150542 - in /libcxx/trunk/include: __split_buffer memory vector
Dave Zarzycki
zarzycki at apple.com
Tue Feb 14 22:19:59 PST 2012
On Feb 14, 2012, at 7:41 PM, Howard Hinnant <hhinnant at apple.com> 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
More information about the cfe-commits
mailing list