Last change
on this file since 45 was
29,
checked in by landauf, 17 years ago
|
updated boost from 1_33_1 to 1_34_1
|
File size:
496 bytes
|
Line | |
---|
1 | /* Copyright Bruno da Silva de Oliveira 2003. Use, modification and |
---|
2 | distribution is subject to the Boost Software License, Version 1.0. |
---|
3 | (See accompanying file LICENSE_1_0.txt or copy at |
---|
4 | http:#www.boost.org/LICENSE_1_0.txt) |
---|
5 | */ |
---|
6 | #ifndef ENUMS_H |
---|
7 | #define ENUMS_H |
---|
8 | |
---|
9 | namespace enums { |
---|
10 | |
---|
11 | enum color { red, blue }; |
---|
12 | |
---|
13 | struct X |
---|
14 | { |
---|
15 | enum choices |
---|
16 | { |
---|
17 | good = 1, |
---|
18 | bad = 2 |
---|
19 | }; |
---|
20 | |
---|
21 | int set(choices c) |
---|
22 | { |
---|
23 | return (int)c; |
---|
24 | } |
---|
25 | }; |
---|
26 | |
---|
27 | enum { |
---|
28 | x = 0, |
---|
29 | y = 1 |
---|
30 | }; |
---|
31 | |
---|
32 | } |
---|
33 | |
---|
34 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.