From Mathias Froehlich, build fix for Solaris

This commit is contained in:
Robert Osfield
2011-01-26 16:45:36 +00:00
parent 740b29d0f7
commit f9428e9f45
3 changed files with 17 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ public:
virtual void writeStream( std::ostream& (*fn)(std::ostream&) )
{
indentIfRequired(); *_out << fn;
if ( fn==static_cast<std::ostream& (*)(std::ostream&)>(std::endl) )
if ( isEndl( fn ) )
{
_readyForIndent = true;
}

View File

@@ -66,10 +66,10 @@ public:
virtual void writeString( const std::string& s )
{ addToCurrentNode( s, true ); }
virtual void writeStream( std::ostream& (*fn)(std::ostream&) )
{
if ( fn==static_cast<std::ostream& (*)(std::ostream&)>(std::endl) )
if ( isEndl( fn ) )
{
if ( _readLineType==PROP_LINE || _readLineType==END_BRACKET_LINE )
{