sudham / ticpp

Automatically exported from code.google.com/p/ticpp
0 stars 0 forks source link

Change Node stream operator to use const Node #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have a function that aceppts a const Element, and I want to stream it to
an std::ostringstream.  But I can't.  

Can we change the stream output operator to this:

friend std::ostream& operator <<( std::ostream& out, const Node& base )
{
  out << *base.GetTiXmlPointer();
  return out;
}

Original issue reported on code.google.com by tim.wei...@gmail.com on 18 Oct 2008 at 6:00

GoogleCodeExporter commented 9 years ago
done
svn r98

Original comment by rjmy...@gmail.com on 19 Oct 2008 at 1:00

GoogleCodeExporter commented 9 years ago

Original comment by rjmy...@gmail.com on 19 Oct 2008 at 1:00