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'
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
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
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
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
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
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
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
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
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
> "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
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
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.
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)
@
gcc: gcc-3.3.4-11
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
15 matches
Mail list logo