Am Dienstag, 16. Januar 2007 16:32 schrieb Abdelrazak Younes:
> Kornel Benko wrote:
> > Am Dienstag, 16. Januar 2007 15:46 schrieb Abdelrazak Younes:
> >> Georg Baum wrote:
> >>> Abdelrazak Younes wrote:
> >>>
> >>>> Kornel Benko wrote:
> >>>>> Am Dienstag, 16. Januar 2007 15:09 schrieb Kornel Benko:
> >>>>>
> >>>>> Attached cures it.
> >>>> But this is not the good fix ;-)
> >>> Indeed not. string() should work even in older gcc versions.
> >>>
> >>>> I think the missing <string> header was the problem.
> >>> I don't think so. Otherwise it would have complained about docstring, too.
> >> Indeed... It's probably the std::xxx declaration which were in the lyx 
> >> namespace. This is known to fail for mingw for example.
> >> I've fixed that.
> > 
> > But it's still not compilable.
> > 
> > if g++ -DHAVE_CONFIG_H -I. -I. -I.   -I../boost -W -Wall   
> > -I/usr/X11R6/include  -g -O -MT CutAndPaste.o -MD -MP -MF 
> > ".deps/CutAndPaste.Tpo" -c -o CutAndPaste.o CutAndPaste.C; \
> > then mv -f ".deps/CutAndPaste.Tpo" ".deps/CutAndPaste.Po"; else rm -f 
> > ".deps/CutAndPaste.Tpo"; exit 1; fi
> > CutAndPaste.C: In function `void lyx::<unnamed>::putClipboard(const
> >    lyx::ParagraphList&, unsigned int, const lyx::docstring&)':
> > CutAndPaste.C:332: error: type specifier omitted for parameter
> > CutAndPaste.C:332: error: syntax error before `false'
> 
> hum, could it be because of the 'explicit' in:
> 
>       explicit Buffer(std::string const & file, bool b = false);
> 
> ???

It is very fishy here.
If I replace the call with:
        string a("");
        Buffer buffer(a, false);
then it compiles.

On the other hand
        string a();
        Buffer buffer(a, false);
yields to
        CutAndPaste.C:676: error: no matching function for call to 
`lyx::Buffer::Buffer
   (std::string (&)(), bool)'
buffer.h:73: error: candidates are: lyx::Buffer::Buffer(const lyx::Buffer&)
buffer.h:92: error:                 lyx::Buffer::Buffer(const std::string&,
   bool)

        regards Kornel
-- 
Kornel Benko
[EMAIL PROTECTED]

Attachment: pgpLYZ9Vo3qND.pgp
Description: PGP signature

Reply via email to