Hello,
In Ch. 22 the program MinAndMax (page 638) does
not compile. There is an error on line 37 (I believe it's 37)
Code:
MinAndMax::MinAndMax() : min(-1), max(-1), first(true)
That throws 2 warnings and 7 errors.
The reason for this is that min and max are some sort of Macro with in Visual Studio 2005, and it conflicts with the variable names. The fix to get this program to compile is to do a simple Find & Replace and replace all instances of
with
(or other variable name)
along with changing
to
Just thought I would point that out incase any one else runs across this problem, and maybe it can be put up as an error or a side note in the future.
Thanks for the excellent book,
Chris