diff --git a/test/base-test.cc b/test/base-test.cc index 0c95e621..18a15e82 100644 --- a/test/base-test.cc +++ b/test/base-test.cc @@ -695,53 +695,8 @@ TEST(core_test, formattable) { static_assert(fmt::formattable); static_assert(fmt::formattable); static_assert(fmt::formattable); - - static_assert(fmt::formattable>); - static_assert(fmt::formattable&>); - static_assert(fmt::formattable&&>); - static_assert(fmt::formattable>); - static_assert(fmt::formattable&>); - static_assert(fmt::formattable&&>); - + static_assert(fmt::formattable); static_assert(!fmt::formattable); -# ifdef __cpp_char8_t - static_assert(!fmt::formattable); -# endif - static_assert(!fmt::formattable); - static_assert(!fmt::formattable); - static_assert(!fmt::formattable); - static_assert(!fmt::formattable); - static_assert(!fmt::formattable); - static_assert(!fmt::formattable); - static_assert(!fmt::formattable); - static_assert(!fmt::formattable); - static_assert(!fmt::formattable>); - static_assert(fmt::formattable); - static_assert(!fmt::formattable); - static_assert(!fmt::formattable); - static_assert(!fmt::formattable); - - static_assert(fmt::formattable); - static_assert(fmt::formattable); - - static_assert(fmt::formattable); -# if !FMT_MSC_VERSION || FMT_MSC_VERSION >= 1910 - static_assert(!fmt::formattable); -# endif - - static_assert(!fmt::formattable); - const auto f = convertible_to_pointer_formattable(); - auto str = std::string(); - fmt::format_to(std::back_inserter(str), "{}", f); - EXPECT_EQ(str, "test"); - - static_assert(!fmt::formattable); - - struct s; - static_assert(!fmt::formattable); - static_assert(!fmt::formattable); - static_assert(!fmt::formattable); - static_assert(!fmt::formattable); } #endif @@ -815,9 +770,6 @@ struct implicitly_convertible_to_string_view { TEST(core_test, no_implicit_conversion_to_string_view) { EXPECT_FALSE( fmt::is_formattable::value); -#if FMT_USE_CONCEPTS - static_assert(!fmt::formattable); -#endif } #ifdef FMT_USE_STRING_VIEW @@ -828,9 +780,6 @@ struct implicitly_convertible_to_std_string_view { TEST(core_test, no_implicit_conversion_to_std_string_view) { EXPECT_FALSE( fmt::is_formattable::value); -# if FMT_USE_CONCEPTS - static_assert(!fmt::formattable); -# endif } #endif @@ -845,9 +794,6 @@ TEST(core_test, format_explicitly_convertible_to_string_view) { // default because it may introduce ODR violations. static_assert( !fmt::is_formattable::value, ""); -# if FMT_USE_CONCEPTS - static_assert(!fmt::formattable); -# endif } # ifdef FMT_USE_STRING_VIEW @@ -861,9 +807,6 @@ TEST(core_test, format_explicitly_convertible_to_std_string_view) { static_assert( !fmt::is_formattable::value, ""); -# if FMT_USE_CONCEPTS - static_assert(!fmt::formattable); -# endif } # endif #endif