(file) Return to portability.txt CVS log (file) (dir) Up to [Pegasus] / pegasus / doc

 1 mike  1.1 
 2           
 3               1.	In .h files the following identifiers must be surrounded by
 4           	the PEGASUS_STD() macro (which prepends std:: to the argument).
 5           
 6           	    ostream
 7           	    istream
 8           	    cout
 9           	    cerr
10           
11           	Do not use this macro in .cpp files. Instead put the following
12           	at the beginning of the file:
13           
14 mike  1.1.2.1 	    PEGASUS_USING_STD;
15 mike  1.1     
16                   2.	The following does not compile with some compilers.
17               
18               	    class X
19               	    {
20               	    public:
21               
22               		static const Uint32 COLOR = 225;
23               	    };
24               
25               	Use this instead:
26               
27               	    class X
28               	    {
29               	    public:
30               
31               		static const Uint32 COLOR;
32               	    };
33               
34               	And place this in the .cpp file:
35               
36 mike  1.1     	    const Uint32 X::COLOR = 255;
37               
38 mike  1.1.2.1 	Or use enumerated types:
39 mike  1.1     
40               	    class X
41               	    {
42               	    public:
43               
44               		enum { COLOR = 225 };
45               	    };
46               

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2