@@ -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+
959962template <basic_fixed_string Str>
960963struct static_colorized_string
961964{
@@ -980,6 +983,9 @@ template<basic_fixed_string Str>
980983
981984} // colorize_literals
982985
986+ #endif
987+
988+
983989template <int = 0 >
984990[[nodiscard]] constexpr detail::dynamic_colorized_string
985991dynamic_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+
10011009template <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+
10071024template <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-
10231034template <class Out , class ... Args>
10241035constexpr 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 */
10411053using ansi_colorize::static_colorized_string;
1054+ #endif
10421055
10431056using ansi_colorize::dynamic_colorize;
10441057
0 commit comments