declear color(std::string) as an explicit constructor

This commit is contained in:
Jinhao 2015-07-24 23:06:01 +08:00
parent 0e5c88f121
commit 9940e2883e

View File

@ -306,7 +306,7 @@ namespace nana
color(unsigned red, unsigned green, unsigned blue, double alpha);
/// Initializes the color with a CSS-like rgb string.
color(std::string css_rgb);
explicit color(std::string css_rgb);
color& alpha(double); ///< Sets alpha channel
color& from_rgb(unsigned red, unsigned green, unsigned blue); ///< immutable alpha channel