struct HtmlColor { enum Value { ... your list here } }; class Color { ....... Color(HtmlColor::Value x); };