Merge pull request #244 from ptomulik/fix/enum-class-doc

correct example in enum class docs
This commit is contained in:
Olly Betts 2014-10-17 11:16:43 +13:00
commit e4c792c162

View file

@ -525,19 +525,19 @@ class Color {
<p>A workaround is to write these as a series of separate classes containing anonymous enums:</p>
<div class="code"><pre>
class PrintingColors {
struct PrintingColors {
enum : unsigned int {
Cyan, Magenta, Yellow, Black
};
};
class BasicColors {
struct BasicColors {
enum : unsigned int {
Red, Green, Blue
};
};
class AllColors {
struct AllColors {
enum : unsigned int {
Yellow, Orange, Red, Magenta, Blue, Cyan, Green, Pink, Black, White
};