version 1.1, 2001/07/24 15:15:41
|
version 1.1.2.1, 2001/07/24 18:13:46
|
|
|
Do not use this macro in .cpp files. Instead put the following | Do not use this macro in .cpp files. Instead put the following |
at the beginning of the file: | at the beginning of the file: |
| |
PEGASUS_USING_STD |
PEGASUS_USING_STD; |
| |
2. The following does not compile with some compilers. | 2. The following does not compile with some compilers. |
| |
|
|
static const Uint32 COLOR; | static const Uint32 COLOR; |
}; | }; |
| |
Change to this: |
|
|
|
class X |
|
{ |
|
public: |
|
|
|
static const Uint32 COLOR; |
|
}; |
|
|
|
And place this in the .cpp file: | And place this in the .cpp file: |
| |
const Uint32 X::COLOR = 255; | const Uint32 X::COLOR = 255; |
| |
Or use enumerated type: |
Or use enumerated types: |
| |
class X | class X |
{ | { |