color: added string() operator
This commit is contained in:
parent
ef02040938
commit
d66cec619a
1 changed files with 2 additions and 0 deletions
|
|
@ -111,6 +111,8 @@ namespace ztd
|
||||||
//! Stored ansi color code
|
//! Stored ansi color code
|
||||||
std::string color_code;
|
std::string color_code;
|
||||||
|
|
||||||
|
inline operator std::string() const { return color_code; };
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Insert color code to stream
|
//! Insert color code to stream
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue