From d66cec619a1477904f8416635386552bce2a3c74 Mon Sep 17 00:00:00 2001 From: zawz Date: Fri, 29 Nov 2019 13:00:04 +0100 Subject: [PATCH] color: added string() operator --- include/color.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/color.hpp b/include/color.hpp index d426daf..6d5e83a 100644 --- a/include/color.hpp +++ b/include/color.hpp @@ -111,6 +111,8 @@ namespace ztd //! Stored ansi color code std::string color_code; + inline operator std::string() const { return color_code; }; + }; //! Insert color code to stream