diff --git a/include/tclap/StdOutput.h b/include/tclap/StdOutput.h index 6216c24..7cf5566 100644 --- a/include/tclap/StdOutput.h +++ b/include/tclap/StdOutput.h @@ -238,7 +238,10 @@ inline void StdOutput::spacePrint( std::ostream& os, while ( start < len ) { // find the substring length - int stringLen = std::min( len - start, allowedLen ); + // int stringLen = std::min( len - start, allowedLen ); + // doing it this way to support a VisualC++ 2005 bug + using namespace std; + int stringLen = min( len - start, allowedLen ); // trim the length so it doesn't end in middle of a word if ( stringLen == allowedLen )