]> git.ipfire.org Git - thirdparty/gcc.git/commit
P0340R2 Making std::underlying_type SFINAE-friendly
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 23 Feb 2019 21:19:00 +0000 (21:19 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 23 Feb 2019 21:19:00 +0000 (21:19 +0000)
commit87798f3f2cf97b30e75110b5a8d2964aef62be02
tree9465862e1aa509de999cfe72cfbc0d183f666ab3
parent1761223a581301ced62e40938318f9ef03edb88c
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@269168 138bc75d-0d04-0410-961f-82ee72b054a4
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]