POV-Ray : Newsgroups : povray.unofficial.patches : Major bug in MegaPOV Plus? : Re: Major bug in MegaPOV Plus? Server Time
2 Sep 2024 08:17:08 EDT (-0400)
  Re: Major bug in MegaPOV Plus?  
From: Jérôme Berger
Date: 11 Sep 2000 10:04:28
Message: <39BCE66A.44AB43D8@enst.fr>
Warp wrote:
> 
>   This code causes it. Can you see what is the mistake?
> 
> #include <string>
> using namespace std;
> 
> int main()
> {
>     string x();
	This line doesn't define a variable of type string but a function with
no arguments that return a string and whose code is assumed to be given
elsewhere (except that I'm surprised that this works inside another
function, I would have understood better if "string x();" was before
"int main()").

>     x.clear();
	But this should work: "x().clear();" (assuming you've got the function
x defined elsewhere). Hey, I wasn't that far off! :))

> }
> 


-- 

* Doctor Jekyll had something * mailto:ber### [at] inamecom
* to Hyde...                  * http://www.enst.fr/~jberger
*******************************


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.