Min and max functions
[QuantLib macros]


Detailed Description

Some compilers still do not define std::min and std::max. Moreover, Visual C++ defines them but for unfathomable reasons garble their names. For the code to be portable these macros should be used instead of the actual functions.


Defines

#define QL_MIN   std::min
 minimum between two elements

#define QL_MAX   std::max
 maximum between two elements


QuantLib.org
QuantLib
Hosted by
SourceForge.net Logo
Documentation generated by
doxygen