On Wed, Jan 26, 2000 at 11:39:53AM +0100, Jean-Marc Lasgouttes wrote:
> >>>>> "Dekel" == Dekel Tsur <[EMAIL PROTECTED]> writes:
>
> Dekel> I can't compile the latest cvs because of the using declaration
> Dekel> in lastfiles.C:85 and table.C:746 (I use an old g++ - ver.
> Dekel> 2.90.29) This can the fixed by moving the using declarations to
> Dekel> the global scope, or stop using 'using' (std::copy etc. are
> Dekel> only used once, so the 'using' declaration is unnecessary)
>
> What message are you getting? Does moving the 'using' directive at the
> beginning of the file (in global scope) help?
>

lastfiles.C: In method void LastFiles::writeFile(const class lyxstring &)
lastfiles.C:85: parse error before using'

Moving the 'using' to the global scope does solve the problem.

> We need these directives because all STLs (notably older ones) do not
> declare objects in std::.
>
What I meant was that instead of
   using std::copy;
   using std::ostream_iterator;
   copy(files.begin(), files.end(),
       ostream_iterator<string>(ofs, "\n"));
                
you can write
   std::copy(files.begin(), files.end(),
       std::ostream_iterator<string>(ofs, "\n"));
          

Reply via email to