We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
is_convertible_without_narrowing
1 parent 66ca64b commit de99433Copy full SHA for de99433
1 file changed
test/type_traits.cpp
@@ -406,6 +406,9 @@ TEST_CASE("is_convertible_without_narrowing: array and function types")
406
STATIC_CHECK(iris::is_convertible_without_narrowing_v<int[3], int const*>);
407
STATIC_CHECK(!iris::is_convertible_without_narrowing_v<int*, int[3]>);
408
409
+ // Element types to array types
410
+ STATIC_CHECK(!iris::is_convertible_without_narrowing_v<int, int[3]>);
411
+
412
// char[] to string
413
STATIC_CHECK(iris::is_convertible_without_narrowing_v<char[5], std::string>);
414
0 commit comments