Re: C++ "not all control paths return a value"
Sorry, I was looking at other code at the same time, and I meant to say
"return name" not return true....go me!
On Monday 31 January 2005 03:24 pm, Warren Myers 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;'
> On Fri, 28 Jan 2005 23:18:18 -0500, Jay Loden <jloden@...> 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 ;)
> > >