Revision: 1140
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1140&view=rev
Author: rich_sposato
Date: 2011-10-07 07:04:46 +0000 (Fri, 07 Oct 2011)
Log Message:
-----------
Added lines to make type of stdout clear to compiler.
Modified Paths:
--------------
trunk/src/SafeFormat.cpp
Modified: trunk/src/SafeFormat.cpp
===================================================================
--- trunk/src/SafeFormat.cpp 2011-10-04 23:46:30 UTC (rev 1139)
+++ trunk/src/SafeFormat.cpp 2011-10-07 07:04:46 UTC (rev 1140)
@@ -69,7 +69,8 @@
::std::string buffer;
const PrintfState< ::std::string &, char > state1( buffer, format );
::std::fwrite( buffer.c_str(), 1, buffer.size(), stdout );
- PrintfState< std::FILE *, char > printState2 = state1.ChangeDevice( stdout );
+ ::std::FILE * f = stdout;
+ PrintfState< std::FILE *, char > printState2( state1.ChangeDevice( f ) );
return printState2;
}
@@ -77,7 +78,8 @@
::std::string buffer;
const PrintfState< ::std::string &, char > state1( buffer, format.c_str() );
::std::fwrite( buffer.c_str(), 1, buffer.size(), stdout );
- PrintfState< std::FILE *, char > printState2 = state1.ChangeDevice( stdout );
+ ::std::FILE * f = stdout;
+ PrintfState< std::FILE *, char > printState2( state1.ChangeDevice( f ) );
return printState2;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|