Menu

#6 Clanbomber2 defines min and max

open
nobody
None
5
2005-10-03
2005-10-03
Anonymous
No

Hi,

I couldnt compile Clanbomber2-0.9 your definition of
min and max in ClanBomber.h conflicts with my standard
header files.
You should remove the defines from ClanBomber.h and use
std::min() and std::max() instead (#include <algorithm>).

Also min and max is never actually used in the source.

I could compile clanbomber2 after I removed the defines.

Hope that helps

micha@foofoo:/tmp/clanbomber2-0.9/clanbomber$ grep -n
'\(min|max\)' ClanBomber.h
261:#define min(a,b) ((a<b) ? (a) : (b))
262:#define max(a,b) ((a>b) ? (a) : (b))

Discussion


Log in to post a comment.

MongoDB Logo MongoDB