[libcxx-commits] [PATCH] D63574: Implement P0340R3: Make `underlying_type` SFINAE-friendly
Marshall Clow via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jun 19 14:34:04 PDT 2019
mclow.lists marked an inline comment as done.
mclow.lists added a comment.
Note: There is no feature test macro for this.
================
Comment at: libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/underlying_type.fail.cpp:19
+
+enum E1 { zero, one, two = sizeof(std::underlying_type<E1>::type) };
+
----------------
I can add an `expected-error {{cannot determine underlying type of incomplete enumeration type 'E1'}}` here if people want.
Repository:
rCXX libc++
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63574/new/
https://reviews.llvm.org/D63574
More information about the libcxx-commits
mailing list