minor change to support a bug in VisualC++ 2005

This commit is contained in:
mes5k 2007-02-08 02:12:56 +00:00
parent 7f430ddf5c
commit 05244fae62

View File

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