Hi everyone,

WAxis, WChart2DRenderer and WStandardItem use std::max/std::min. There are
many other files as well but I didn`t list them all. When compiling under
Windows there is a conflict with the declarations contained in WinDef.h.

Long story short, the explanation is here:
http://heifner.blogspot.com/2008/02/stdmin-and-stdmax.html

Recommended approach:
replace all std::max and std::min for (std::max) and (std::min). I find this
approach cleaner than using #define NOMINMAX.

Cya,
Daniel.
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to