Skip to content

Commit e8338d2

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

1 file changed

Lines changed: 19 additions & 6 deletions

File tree

include/iris/colorize_format.hpp

Lines changed: 19 additions & 6 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
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
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
{
@@ -1038,7 +1049,9 @@ using namespace ansi_colorize::colorize_literals;
10381049

10391050
} // colorize_literals
10401051

1052+
#if defined(__clang__) || _MSC_VER >= 1950 /* VS 2026 */
10411053
using ansi_colorize::static_colorized_string;
1054+
#endif
10421055

10431056
using ansi_colorize::dynamic_colorize;
10441057

0 commit comments

Comments
 (0)