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

Diff for /pegasus/doc/Attic/portability.txt between version 1.1 and 1.1.2.2

version 1.1, 2001/07/24 15:15:41 version 1.1.2.2, 2001/07/24 18:46:07
Line 11 
Line 11 
         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.
  
Line 31 
Line 31 
                 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
             {             {
Line 53 
Line 44 
                 enum { COLOR = 225 };                 enum { COLOR = 225 };
             };             };
  
       3.  Explain use of Linkage.h files and linkage directives.


Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.2.2

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2