Hello!
Sorry if this was proposed before:
std:: can be used with older g++ versions, I think if you add
-Dstd= to the command line, or otherwise define std to the empty macro.
It also works for other compilers.
Could this be a solution?
Quoting r. Lars Gullik Bjønnes ([EMAIL PROTECTED]) "Re: using std... namespace std":
> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
>
> | This does not work with gcc 2.8.1 (as you might have guessed), but
> | does work with cxx and probably with sun CC 5.0 (which does not
> | compile out of the box yet).
>
> Ok... note that you are the only cause why I still (kindo want to)
> support gcc 2.8.x.
>
> | Lars, I know you'd really like to use std:: all over the code, but
> | I'd
>
> It is not that I want to use std:: all over, I just want to remove the
> using from the header files.
>
> | like to be able to continue a bit with gcc 2.8.1, as long as it is not
> | too painful. One reason is that it is my only way now to compile under
> | solaris (to get purify) and that I do _not_ intend to upgrade the
> | compiler used by 100+ persons here...
> |
> | Anyway, I am the one who have this crappy compiler, and I am the one
> | who has the other funky compiler which requires std::, so I can do the
> | work of adding 'using' directive when needed (I don't care).
> | Finally,
>
> That is the problem, we want to get rid of the using statements.
>
> | when we decide to drop it (in 10 years or so)
>
> Ha ha!
>
> , it is a matter of one
> | hour of work to remove 'using' directives and add std:: where it is
> | needed, so it is not really breaking LyX with lots of nasty
> | workarounds.
> |
> | So I think we should keep these directives for now, even though you
> | really seem to have an itch to scratch here.
>
> Especialy since I now compile only with the new stdc++ lib from gnu,
> with -fhonor-std turned on by default...
>
> Lgb
--
This message content is not part of Intel's views or affairs
Michael S. Tsirkin
> Four things are to be strengthened: Torah,and good deeds,
> prayer and one's good manners (Berachoth)