From d02fe9bdae3553660896d14ef24c2b6dc82bb6db Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Mon, 12 Dec 2016 14:58:38 -0800 Subject: Add System::println(std::string) overloads --- toolsrc/include/vcpkg_System.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/toolsrc/include/vcpkg_System.h b/toolsrc/include/vcpkg_System.h index e059bde0a..ca81235ed 100644 --- a/toolsrc/include/vcpkg_System.h +++ b/toolsrc/include/vcpkg_System.h @@ -39,6 +39,26 @@ namespace vcpkg {namespace System void print(color c, const char* message); void println(color c, const char* message); + inline void print(const std::string& message) + { + return print(message.c_str()); + } + + inline void println(const std::string& message) + { + return println(message.c_str()); + } + + inline void print(color c, const std::string& message) + { + return print(c, message.c_str()); + } + + inline void println(color c, const std::string& message) + { + return println(c, message.c_str()); + } + template void print(const char* messageTemplate, const Args&... messageArgs) { -- cgit v1.2.3