color: added string() operator

This commit is contained in:
zawz 2019-11-29 13:00:04 +01:00
parent ef02040938
commit d66cec619a

View file

@ -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