POV-Ray : Newsgroups : povray.off-topic : You lose some... : Re: Some code Server Time
7 Sep 2024 03:21:07 EDT (-0400)
  Re: Some code  
From: Orchid XP v8
Date: 5 Oct 2008 08:52:26
Message: <48e8b88a$1@news.povray.org>
Slime wrote:

> It definitely matters less when you're the only one editing the code, but 
> asserting things like this is still a good habit to get into.

OK, fair enough.

>  - trees.size() is 0 in the first place? This could happen if an empty 
> vector was passed in.

There probably *should* be an assert to check that the vector passed in 
is non-empty...

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

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