[PATCH] Proposed resolution to LWG issue 2433: uninitialized_copy()/etc. should tolerate overloaded operator&
Eric Fiselier
eric at efcs.ca
Thu Apr 30 18:19:41 PDT 2015
addressof needs to be qualified.
================
Comment at: include/memory:3489
@@ -3488,3 +3488,3 @@
for (; __f != __l; ++__f, ++__r)
- ::new(&*__r) value_type(*__f);
+ ::new (static_cast<void*>(addressof(*__r))) value_type(*__f);
#ifndef _LIBCPP_NO_EXCEPTIONS
----------------
These calls should be qualified to prevent ADL.
http://reviews.llvm.org/D9411
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the cfe-commits
mailing list