POV-Ray : Newsgroups : povray.off-topic : You lose some... : Re: Some code Server Time
7 Sep 2024 03:23:34 EDT (-0400)
  Re: Some code  
From: Warp
Date: 5 Oct 2008 06:36:40
Message: <48e898b8@news.povray.org>
Orchid XP v8 <voi### [at] devnull> wrote:
>    Tree t = build_tree(symbols);

  In this case the error messages given by valgrind wouldn't have been
the clearest possible, but they nevertheless point to this line being
the ultimate culprit (which, ultimately, is caused by build_tree() returning
a reference to a local variable).

  Anyways, I'm wondering why you are passing the parameter by value rather
than by const reference...

-- 
                                                          - Warp


Post a reply to this message

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