[libcxx-commits] [PATCH] D149351: [libc++] Moves unwrap_reference to type_traits.

Nikolas Klauser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Apr 27 08:29:30 PDT 2023


philnik added inline comments.


================
Comment at: libcxx/include/__functional/unwrap_ref.h:24
 template <class _Tp>
 struct unwrap_ref_decay : unwrap_reference<__decay_t<_Tp> > { };
 
----------------
At least according to cppreference, `unwrap_ref_decay` should also get defined by `<type_traits>`.


================
Comment at: libcxx/include/__type_traits/unwrap_ref.h:25
-template <class _Tp>
-class reference_wrapper;
-
----------------
What's wrong with forward-declaring `reference_wrapper` here?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149351/new/

https://reviews.llvm.org/D149351



More information about the libcxx-commits mailing list