Re: Cannot compile. Latest in trunk

2007-01-20 Thread Andre Poenitz
On Fri, Jan 19, 2007 at 07:31:45PM +0100, Andre' Poenitz wrote: > string a(); > > is a declaration of a function called 'a' taking no argument and > returning a string. Hmpf... and everyone knew already. I was pretty sure I was up-to-date when writng this mail. Andre'

Re: Cannot compile. Latest in trunk

2007-01-19 Thread Andre Poenitz
On Tue, Jan 16, 2007 at 04:52:00PM +0100, Kornel Benko wrote: > 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(); string a(); is a declaration of a function called 'a' taki

Re: Cannot compile. Latest in trunk

2007-01-16 Thread Kornel Benko
Am Dienstag, 16. Januar 2007 19:41 schrieb Angus Leeming: > That's not fishy at all. > >    string a(""); > > defines a variable "a" and initializes it with "". The same thing is > achieved more elegantly and less expensively with: > >    string a; > > By way of contrast, > >    string a(); > > is

Re: Cannot compile. Latest in trunk

2007-01-16 Thread Georg Baum
Am Dienstag, 16. Januar 2007 16:52 schrieb Kornel Benko: > 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(); This is a function declaration of a function 'a' returning a strin

Re: Cannot compile. Latest in trunk

2007-01-16 Thread Angus Leeming
Kornel Benko <[EMAIL PROTECTED]> writes: > 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 m

Re: Cannot compile. Latest in trunk

2007-01-16 Thread Kornel Benko
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 Benk

Re: Cannot compile. Latest in trunk

2007-01-16 Thread 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 ev

Re: Cannot compile. Latest in trunk

2007-01-16 Thread Kornel Benko
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. strin

Re: Cannot compile. Latest in trunk

2007-01-16 Thread 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 header was the problem. I don't

Re: Cannot compile. Latest in trunk

2007-01-16 Thread Kornel Benko
Am Dienstag, 16. Januar 2007 15:34 schrieb Abdelrazak Younes: > Kornel Benko wrote: > > Am Dienstag, 16. Januar 2007 15:09 schrieb Kornel Benko: > > > > Attached cures it. > > But this is not the good fix ;-) > I think the missing header was the problem. > > Try again. Hmm... still the same. i

Re: Cannot compile. Latest in trunk

2007-01-16 Thread Jean-Marc Lasgouttes
> "Kornel" == Kornel Benko <[EMAIL PROTECTED]> writes: Kornel> Am Dienstag, 16. Januar 2007 15:09 schrieb Kornel Benko: Kornel> Attached cures it. How come string("") is needed? I thought we had plenty of these string() constructs. JMarc

Re: Cannot compile. Latest in trunk

2007-01-16 Thread Georg Baum
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 header was the problem. I don't think so

Re: Cannot compile. Latest in trunk

2007-01-16 Thread Abdelrazak Younes
Kornel Benko wrote: Am Dienstag, 16. Januar 2007 15:09 schrieb Kornel Benko: Attached cures it. But this is not the good fix ;-) I think the missing header was the problem. Try again. Abdel.

Re: Cannot compile. Latest in trunk

2007-01-16 Thread Kornel Benko
Am Dienstag, 16. Januar 2007 15:09 schrieb Kornel Benko: Attached cures it. Kornel -- Kornel Benko [EMAIL PROTECTED] Index: src/CutAndPaste.C === --- src/CutAndPaste.C (revision 16705) +++ src/CutAndPaste.C (working copy) @