Merge pull request #244 from ptomulik/fix/enum-class-doc
correct example in enum class docs
This commit is contained in:
commit
e4c792c162
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue