From 05244fae6245af9be8d6d2ef1c4008e8be475196 Mon Sep 17 00:00:00 2001 From: mes5k Date: Thu, 8 Feb 2007 02:12:56 +0000 Subject: [PATCH] minor change to support a bug in VisualC++ 2005 --- include/tclap/StdOutput.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 )