diff --git a/src/xtd.core/include/xtd/println.h b/src/xtd.core/include/xtd/println.h index 3eb8d7ad38e..c045529f5c0 100644 --- a/src/xtd.core/include/xtd/println.h +++ b/src/xtd.core/include/xtd/println.h @@ -25,4 +25,19 @@ namespace xtd { /// @param values Values to write, template void println(const xtd::string& fmt, args_t&& ... values) {xtd::console::write_line(xtd::string::format(fmt, std::forward(values)...));} + + /// @cond + template + void println(const char* fmt, args_t&& ... values) {xtd::console::write_line(xtd::string::format(xtd::string {fmt}, std::forward(values)...));} +#if defined(__xtd__cpp_lib_char8_t) + template + void println(const char8_t* fmt, args_t&& ... values) {xtd::console::write_line(xtd::string::format(xtd::string {fmt}, std::forward(values)...));} +#endif + template + void println(const char16_t* fmt, args_t&& ... values) {xtd::console::write_line(xtd::string::format(xtd::string {fmt}, std::forward(values)...));} + template + void println(const char32_t* fmt, args_t&& ... values) {xtd::console::write_line(xtd::string::format(xtd::string {fmt}, std::forward(values)...));} + template + void println(const wchar_t* fmt, args_t&& ... values) {xtd::console::write_line(xtd::string::format(xtd::string {fmt}, std::forward(values)...));} + /// @endcond }