[libcxx-commits] [PATCH] D63574: Implement P0340R3: Make `underlying_type` SFINAE-friendly

Eric Fiselier via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jun 20 14:41:01 PDT 2019


EricWF requested changes to this revision.
EricWF added inline comments.
This revision now requires changes to proceed.


================
Comment at: libcxx/include/type_traits:4729
 
+template <class _Tp, bool = is_enum<_Tp>::value> struct underlying_type;
+
----------------
This changes the mangling of `underlying_type`, and potentially it's usage as a "template template". 
The specialization trick should be done in a impl base class.


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

https://reviews.llvm.org/D63574





More information about the libcxx-commits mailing list