[EMAIL PROTECTED] (Yves Bastide) writes:
| It seems that another number of std:: or using std:: are needed to compile
| LyX 1.1.6 with GCC 3.0 or other modern compilers.
|
| I guess that, in .C files, the preferred way is to use
|
| #ifndef CXX_GLOBAL_CSTD
| using std::strlen;
| ...
| #endif
|
| But what about header files? Is The Right Thing, such as
|
| --- src/font.h 2000/09/27 18:13:29 1.6
| +++ src/font.h 2001/06/07 10:10:11
| @@ -61,7 +61,7 @@ struct lyxfont {
| ///
| static
| int width(char const * s, LyXFont const & f) {
| - return width(s, strlen(s), f);
| + return width(s, std::strlen(s), f);
| }
| ///
| static
|
| acceptable for older compilers?
No, unfourtunately not.
We have to use the CXX_GLOBAL_CSTD there too.
--
Lgb