[cfe-dev] [libc++] (Yet) more places to use std::addressof
Sebastian Theophil via cfe-dev
cfe-dev at lists.llvm.org
Fri Sep 18 04:38:40 PDT 2015
Hi,
This just bit me. In lines 386 and 387 of the utility header, std::addressof should be used:
void
swap(pair& __p) _NOEXCEPT_(__is_nothrow_swappable<first_type>::value &&
__is_nothrow_swappable<second_type>::value)
{
_VSTD::iter_swap(&first, &__p.first);
_VSTD::iter_swap(&second, &__p.second);
}
Regards
Sebastian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150918/5023d830/attachment.html>
More information about the cfe-dev
mailing list