More checks for non-compilable code, plus fix for span (#1180)

This commit is contained in:
Werner Henze
2025-01-04 11:50:31 -06:00
committed by GitHub
parent c832885f15
commit 1cdb8d295e
8 changed files with 439 additions and 412 deletions
+2 -4
View File
@@ -67,6 +67,8 @@ TEST(byte_tests, construction)
to_byte(char{});
to_byte(3);
to_byte(3u);
to_byte<-1>();
to_byte<256u>();
#endif
}
@@ -174,7 +176,3 @@ static constexpr bool
static_assert(!ToIntegerCompilesFor<float>, "!ToIntegerCompilesFor<float>");
} // namespace
#ifdef CONFIRM_COMPILATION_ERRORS
copy(src_span_static, dst_span_static);
#endif