[ale] C++ "not all control paths return a value"
Jim Patterson
unixdude at gmail.com
Mon Jan 31 18:38:37 EST 2005
Umm.. That should be 'return "";' since this a return by value function. Assume
this is STL code or someother library that will do the type conversion.
Jim P.
On Mon, 31 Jan 2005 15:24:32 -0500, Warren Myers <volcimaster at gmail.com> wrote:
> Umm.. returning true in a string functgion, should make the compiler
> barf. Unless you mean you're just returning an empty string, which
> would be done with 'return new string;'
>
> WMM
>
>
> On Fri, 28 Jan 2005 23:18:18 -0500, Jay Loden <jloden at toughguy.net> wrote:
> > Yeah, it's the only thing that's kept me on Windows at all, because I need
> > Visual Studio to compile the stupid thing. I thought it'd be a one time
> > thing but here we are over 18 months later and I'm still updating it weekly
> > to remove new virus variants.
> >
> > Thanks to everyone that replied, all I had to do was remove the else at the
> > end and just put "return true" - one of those things where looking back at
> > code from a year ago I realize that I've learned a little since then ;)
> >
> > -Jay
> >
> > On Friday 28 January 2005 06:39 pm, Jim Popovitch wrote:
> > > On Fri, 2005-01-28 at 18:14 -0500, Jay Loden wrote:
> > > > If it helps, it's a virus removal that has resulted in me being able to
> > > > bring about five or six people into the Linux flock ;)
> > >
> > > Even if it doesn't bring them to Linux, virus removal is a worthy
> > > cause. ;-) Best wishes.
> > >
> > > -Jim P.
> > >
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > Ale mailing list
> > > Ale at ale.org
> > > http://www.ale.org/mailman/listinfo/ale
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > http://www.ale.org/mailman/listinfo/ale
> >
>
>
> --
> http://warrenmyers.com
> "Don't let the elephants see what the rabbits are doing." --Ben R Rich
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
>
More information about the Ale
mailing list