P0340R2 Making std::underlying_type SFINAE-friendly
authorJonathan Wakely <jwakely@redhat.com>
Sat, 23 Feb 2019 21:19:00 +0000 (21:19 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Sat, 23 Feb 2019 21:19:00 +0000 (21:19 +0000)
commit3c26b7598c6d800dcc037a66f2dacf80728fb480
tree9465862e1aa509de999cfe72cfbc0d183f666ab3
parent46d496b9d93f7a647c9f5d58fed94f9e7fa299ab
P0340R2 Making std::underlying_type SFINAE-friendly

* include/std/type_traits (__underlying_type_impl): New helper to
make underlying_type SFINAE-friendly.
(underlying_type): Derive from __underlying_type_impl.
* testsuite/20_util/underlying_type/requirements/typedefs-3.cc: New
test.

From-SVN: r269168
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/type_traits
libstdc++-v3/testsuite/20_util/underlying_type/requirements/typedefs-3.cc [new file with mode: 0644]