Implemented an osg::minimum and osg::maximum template functions to replace

the std::min/max functions previously used in parts of the osg, since the
std::min/max methods do not seem implemented under IRIX.
This commit is contained in:
Robert Osfield
2003-02-24 12:02:00 +00:00
parent 372ca1d227
commit 7877c55770
3 changed files with 18 additions and 11 deletions

View File

@@ -1,6 +1,5 @@
#include <osg/ApplicationUsage>
#include <algorithm>
#include <osg/Math>
using namespace osg;
@@ -54,7 +53,7 @@ void ApplicationUsage::write(std::ostream& output, const ApplicationUsage::Usage
citr!=um.end();
++citr)
{
maxNumCharsInOptions = std::max(maxNumCharsInOptions,(unsigned int)citr->first.length());
maxNumCharsInOptions = maximum(maxNumCharsInOptions,(unsigned int)citr->first.length());
}
unsigned int fullWidth = widthOfOutput;