Return to portability.txt CVS log | Up to [Pegasus] / pegasus / doc |
File: [Pegasus] / pegasus / doc / Attic / portability.txt
(download)
Revision: 1.1, Tue Jul 24 14:15:41 2001 UTC (22 years, 10 months ago) by mike Branch: MAIN Branch point for: dev New |
1. In .h files the following identifiers must be surrounded by the PEGASUS_STD() macro (which prepends std:: to the argument). ostream istream cout cerr Do not use this macro in .cpp files. Instead put the following at the beginning of the file: PEGASUS_USING_STD 2. The following does not compile with some compilers. class X { public: static const Uint32 COLOR = 225; }; Use this instead: class X { public: static const Uint32 COLOR; }; Change to this: class X { public: static const Uint32 COLOR; }; And place this in the .cpp file: const Uint32 X::COLOR = 255; Or use enumerated type: class X { public: enum { COLOR = 225 }; };
No CVS admin address has been configured |
Powered by ViewCVS 0.9.2 |