From 9940e2883e1b10d742fa6f1b135042d83e6a79ae Mon Sep 17 00:00:00 2001 From: Jinhao Date: Fri, 24 Jul 2015 23:06:01 +0800 Subject: [PATCH] declear color(std::string) as an explicit constructor --- include/nana/basic_types.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nana/basic_types.hpp b/include/nana/basic_types.hpp index 475f652e..da37272d 100644 --- a/include/nana/basic_types.hpp +++ b/include/nana/basic_types.hpp @@ -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