Skip to content

Commit

Permalink
Remove an old workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Nov 19, 2024
1 parent b1a0547 commit 6bad97d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions test/ranges-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#endif

#if !FMT_MSC_VERSION || FMT_MSC_VERSION > 1910
# define FMT_RANGES_TEST_ENABLE_JOIN
# define FMT_RANGES_TEST_ENABLE_FORMAT_STRUCT
#endif

Expand Down Expand Up @@ -213,8 +212,6 @@ TEST(ranges_test, tuple_parse_calls_element_parse) {
EXPECT_THROW(f.parse(ctx), bad_format);
}

#if defined(FMT_RANGES_TEST_ENABLE_JOIN) || \
defined(FMT_RANGES_TEST_ENABLE_FORMAT_STRUCT)
struct tuple_like {
int i;
std::string str;
Expand Down Expand Up @@ -242,7 +239,6 @@ template <size_t N> struct tuple_element<N, tuple_like> {
using type = decltype(std::declval<tuple_like>().get<N>());
};
} // namespace std
#endif

#ifdef FMT_RANGES_TEST_ENABLE_FORMAT_STRUCT
TEST(ranges_test, format_struct) {
Expand Down Expand Up @@ -404,7 +400,6 @@ TEST(ranges_test, join_bytes) {
}
#endif

#ifdef FMT_RANGES_TEST_ENABLE_JOIN
TEST(ranges_test, join_tuple) {
// Value tuple args.
auto t1 = std::tuple<char, int, float>('a', 1, 2.0f);
Expand Down Expand Up @@ -540,8 +535,6 @@ TEST(ranges_test, format_join_adl_begin_end) {
EXPECT_EQ(fmt::format("{}", fmt::join(adl::vec(), "/")), "42/43");
}

#endif // FMT_RANGES_TEST_ENABLE_JOIN

#if defined(__cpp_lib_ranges) && __cpp_lib_ranges >= 202207L
TEST(ranges_test, nested_ranges) {
auto l = std::list{1, 2, 3};
Expand Down

0 comments on commit 6bad97d

Please sign in to comment.