[libcxx-commits] [PATCH] D92884: [libc++] ADL-proof <functional> by adding _VSTD:: qualification on calls.

Arthur O'Dwyer via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Dec 8 14:01:45 PST 2020


Quuxplusone created this revision.
Quuxplusone added a reviewer: ldionne.
Quuxplusone added a project: libc++.
Quuxplusone requested review of this revision.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.



- std::reference_wrapper
- std::function
- std::mem_fn

  While I'm here, remove _VSTD:: qualification from calls to `declval` because it takes no arguments and thus isn't susceptible to ADL.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D92884

Files:
  libcxx/include/__functional_base
  libcxx/include/__functional_base_03
  libcxx/include/functional
  libcxx/test/std/utilities/function.objects/func.memfn/robust_against_adl.cpp
  libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/robust_against_adl.cpp
  libcxx/test/std/utilities/function.objects/refwrap/refwrap.invoke/robust_against_adl.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92884.310343.patch
Type: text/x-patch
Size: 20581 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20201208/52046412/attachment-0001.bin>


More information about the libcxx-commits mailing list