Skip to content

Commit 29a3c6b

Browse files
committed
Remove some tests for GCC 14
1 parent f660d60 commit 29a3c6b

2 files changed

Lines changed: 24 additions & 9 deletions

File tree

‎include/iris/colorize_format.hpp‎

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -956,6 +956,9 @@ template<int = 0>
956956
return ansi_colorize::colorize_to(detail::counting_iterator<char>{}, col).count;
957957
}
958958

959+
960+
#if defined(__clang__) || _MSC_VER >= 1950 /* VS 2026 */
961+
959962
template<basic_fixed_string Str>
960963
struct static_colorized_string
961964
{
@@ -980,6 +983,9 @@ template<basic_fixed_string Str>
980983

981984
} // colorize_literals
982985

986+
#endif // clang or VS >= 2026
987+
988+
983989
template<int = 0>
984990
[[nodiscard]] constexpr detail::dynamic_colorized_string
985991
dynamic_colorize(std::string_view str)
@@ -998,12 +1004,23 @@ dynamic_colorize_format(std::string_view str)
9981004

9991005
#endif
10001006

1007+
#if defined(__clang__) || _MSC_VER >= 1950 /* VS 2026 */
1008+
10011009
template<basic_fixed_string Str, class... Args>
10021010
[[nodiscard]] constexpr std::string colorize_format(static_colorized_string<Str>, Args&&... args)
10031011
{
10041012
return std::format(static_colorized_string<Str>::colorized, args...);
10051013
}
10061014

1015+
template<class Out, basic_fixed_string Str, class... Args>
1016+
constexpr Out colorize_format_to(Out out, static_colorized_string<Str>, Args&&... args)
1017+
{
1018+
return std::format_to(std::move(out), static_colorized_string<Str>::colorized, args...);
1019+
}
1020+
1021+
#endif // clang or VS >= 2026
1022+
1023+
10071024
template<class... Args>
10081025
[[nodiscard]] constexpr std::string colorize_format(colorized_string_view str, Args&&... args)
10091026
{
@@ -1014,12 +1031,6 @@ template<class... Args>
10141031
#endif
10151032
}
10161033

1017-
template<class Out, basic_fixed_string Str, class... Args>
1018-
constexpr Out colorize_format_to(Out out, static_colorized_string<Str>, Args&&... args)
1019-
{
1020-
return std::format_to(std::move(out), static_colorized_string<Str>::colorized, args...);
1021-
}
1022-
10231034
template<class Out, class... Args>
10241035
constexpr Out colorize_format_to(Out out, colorized_format_string<Args...> fmt, Args&&... args)
10251036
{
@@ -1032,14 +1043,18 @@ constexpr Out colorize_format_to(Out out, colorized_format_string<Args...> fmt,
10321043

10331044
} // ansi_colorize
10341045

1035-
inline namespace colorize_literals {
10361046

1037-
using namespace ansi_colorize::colorize_literals;
1047+
#if defined(__clang__) || _MSC_VER >= 1950 /* VS 2026 */
10381048

1049+
inline namespace colorize_literals {
1050+
using namespace ansi_colorize::colorize_literals;
10391051
} // colorize_literals
10401052

10411053
using ansi_colorize::static_colorized_string;
10421054

1055+
#endif // clang or VS >= 2026
1056+
1057+
10431058
using ansi_colorize::dynamic_colorize;
10441059

10451060
#if __cpp_lib_format >= 202311L

‎test/colorize_format.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,4 +180,4 @@ TEST_CASE("colorize(fixed)")
180180
}
181181
}
182182

183-
#endif
183+
#endif // clang or VS >= 2026

0 commit comments

Comments
 (0)