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/



_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to