Added lines to make type of stdout clear to compiler.

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1140 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
rich_sposato 2011-10-07 07:04:46 +00:00
parent 6d08c064e6
commit a6028748b2

View file

@ -69,7 +69,8 @@ namespace Loki
::std::string buffer; ::std::string buffer;
const PrintfState< ::std::string &, char > state1( buffer, format ); const PrintfState< ::std::string &, char > state1( buffer, format );
::std::fwrite( buffer.c_str(), 1, buffer.size(), stdout ); ::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; return printState2;
} }
@ -77,7 +78,8 @@ namespace Loki
::std::string buffer; ::std::string buffer;
const PrintfState< ::std::string &, char > state1( buffer, format.c_str() ); const PrintfState< ::std::string &, char > state1( buffer, format.c_str() );
::std::fwrite( buffer.c_str(), 1, buffer.size(), stdout ); ::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; return printState2;
} }