Remove an old workaround

This commit is contained in:
Victor Zverovich 2024-11-19 14:28:39 +01:00
parent dfad80d1c5
commit df249d8ad3

View File

@ -28,10 +28,6 @@
# define FMT_RANGES_TEST_ENABLE_C_STYLE_ARRAY # define FMT_RANGES_TEST_ENABLE_C_STYLE_ARRAY
#endif #endif
#if !FMT_MSC_VERSION || FMT_MSC_VERSION > 1910
# define FMT_RANGES_TEST_ENABLE_FORMAT_STRUCT
#endif
#ifdef FMT_RANGES_TEST_ENABLE_C_STYLE_ARRAY #ifdef FMT_RANGES_TEST_ENABLE_C_STYLE_ARRAY
TEST(ranges_test, format_array) { TEST(ranges_test, format_array) {
int arr[] = {1, 2, 3, 5, 7, 11}; int arr[] = {1, 2, 3, 5, 7, 11};
@ -240,12 +236,10 @@ template <size_t N> struct tuple_element<N, tuple_like> {
}; };
} // namespace std } // namespace std
#ifdef FMT_RANGES_TEST_ENABLE_FORMAT_STRUCT
TEST(ranges_test, format_struct) { TEST(ranges_test, format_struct) {
auto t = tuple_like{42, "foo"}; auto t = tuple_like{42, "foo"};
EXPECT_EQ(fmt::format("{}", t), "(42, \"foo\")"); EXPECT_EQ(fmt::format("{}", t), "(42, \"foo\")");
} }
#endif // FMT_RANGES_TEST_ENABLE_FORMAT_STRUCT
TEST(ranges_test, format_to) { TEST(ranges_test, format_to) {
char buf[10]; char buf[10];