#include <boost/assert.hpp>
+using lyx::odocstream;
+
using std::abs;
using std::endl;
using std::min;
void MathArray::dump2() const
{
- NormalStream ns(lyxerr);
+ lyx::odocstringstream os;
+ NormalStream ns(os);
for (const_iterator it = begin(); it != end(); ++it)
ns << *it << ' ';
+ lyxerr << lyx::to_utf8(os.str());
}
void MathArray::dump() const
{
- NormalStream ns(lyxerr);
+ lyx::odocstringstream os;
+ NormalStream ns(os);
for (const_iterator it = begin(); it != end(); ++it)
ns << '<' << *it << '>';
+ lyxerr << lyx::to_utf8(os.str());
}
{
return bv.coordCache().getArrays().y(this);
}
+
+
+std::ostream & operator<<(std::ostream & os, MathArray const & ar)
+{
+ lyx::odocstringstream oss;
+ NormalStream ns(oss);
+ ns << ar;
+ return os << lyx::to_utf8(oss.str());
+}
+
+
+odocstream & operator<<(odocstream & os, MathArray const & ar)
+{
+ NormalStream ns(os);
+ ns << ar;
+ return os;
+}