[libcxx-commits] [PATCH] D74351: [libcxx][type_traits] Implement	C++20 common_ref
    Michael Schellenberger Costa via Phabricator via libcxx-commits 
    libcxx-commits at lists.llvm.org
       
    Tue Feb 11 03:25:37 PST 2020
    
    
  
miscco added inline comments.
================
Comment at: libcxx/include/type_traits:2306-2307
+template <class _Tp, class _Up>
+struct __common_reference2<_Tp&, _Up&&, enable_if_t<
+    is_convertible_v<_Up&&, __ll_common_ref<const _Up, _Tp>>>>
+{
----------------
cjdb wrote:
> Perhaps we should hold off on merging this so we can use `std::convertible_to` instead.
I would add that `std::convertible_to` has slightly different semantics too as it has some addtional requires clauses
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D74351/new/
https://reviews.llvm.org/D74351
    
    
More information about the libcxx-commits
mailing list