From 6dc25d067dab29b0068b440bb13bb9bea495a43c Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 26 Oct 2021 00:50:59 +0300 Subject: [PATCH] type_name does not support incomplete types --- test/is_scoped_enum_test.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/test/is_scoped_enum_test.cpp b/test/is_scoped_enum_test.cpp index e7a70a2..59ac774 100644 --- a/test/is_scoped_enum_test.cpp +++ b/test/is_scoped_enum_test.cpp @@ -43,12 +43,22 @@ template void test_false() BOOST_TEST_TRAIT_FALSE((is_scoped_enum)); } +template void test_false_() +{ + using boost::endian::detail::is_scoped_enum; + + BOOST_TEST_NOT((is_scoped_enum::value)); + BOOST_TEST_NOT((is_scoped_enum::value)); + BOOST_TEST_NOT((is_scoped_enum::value)); + BOOST_TEST_NOT((is_scoped_enum::value)); +} + int main() { test_false(); test_false(); test_false(); - test_false(); + test_false_(); test_false(); test_false(); test_false();