[PATCH] D40259: [libcxx] LWG2993: reference_wrapper<T> conversion from T&&

Tim Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 20 12:11:58 PST 2017


tcanens added inline comments.


================
Comment at: include/__functional_base:377
+inline _LIBCPP_INLINE_VISIBILITY
+_Tp& __lvref_bind(_Tp& r) _NOEXCEPT { return r; }
+
----------------
I'd make these member functions of a class template, to avoid having to reason about partial ordering in overload resolution.


https://reviews.llvm.org/D40259





More information about the cfe-commits mailing list