POV-Ray : Newsgroups : povray.general : pov source gcc3 problem : Re: pov source gcc3 problem Server Time
6 Aug 2024 02:18:58 EDT (-0400)
  Re: pov source gcc3 problem  
From: Christoph Hormann
Date: 3 Aug 2002 03:57:45
Message: <3D4B8CF7.90B5D011@gmx.de>
Warp wrote:
> 
> Bob Jamison <rja### [at] lincom-asgcom> wrote:
> > #ifndef max
> > #define max(a,b) ( a > b ? a : b )
> > #endif
> > #ifndef min
> > #define min(a,b) ( a < b ? a : b )
> > #endif
> 
> > This is easier than searching & prefacing all max
> > and min calls with std:: ,  eh?   ;-)
> 
>   How is it easier than writing 'using namespace std;' instead?
> 
>   Besides, your solution is very bad. Do you know why?
> 

Well, i'm no expert in c, but i guess

max(++x, y)

would cause problems.

Christoph

-- 
POV-Ray tutorials, IsoWood include,                 
TransSkin and more: http://www.tu-bs.de/~y0013390/  
Last updated 15 Jul. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

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