From adf2ae083512c8b3d5c7df5c440c57b4b86f6fef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Wed, 4 Jul 2001 17:17:32 +0000 Subject: [PATCH] operator<<(ostream &, xarray const &) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2183 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/ChangeLog | 2 ++ src/mathed/xarray.C | 6 ++++++ src/mathed/xarray.h | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index f2fa84ee47..9237735545 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -2,6 +2,8 @@ * math_parser.C: fix reading of "unusual" alpha chars + * xarray.[hC]: fix debug output of xarray + 2001-07-03 André Pönitz diff --git a/src/mathed/xarray.C b/src/mathed/xarray.C index d36c8d5abe..e159e7294e 100644 --- a/src/mathed/xarray.C +++ b/src/mathed/xarray.C @@ -108,3 +108,9 @@ int MathXArray::width(int pos) const else return mathed_char_width(data_.GetCode(pos), style_, data_.GetChar(pos)); } + +std::ostream & operator<<(std::ostream & os, MathXArray const & ar) +{ + os << ar.data_; +} + diff --git a/src/mathed/xarray.h b/src/mathed/xarray.h index badd68794d..7bc0bc8269 100644 --- a/src/mathed/xarray.h +++ b/src/mathed/xarray.h @@ -61,6 +61,6 @@ public: MathStyles style_; }; -std::ostream & operator<<(std::ostream & os, MathArray const & ar); +std::ostream & operator<<(std::ostream & os, MathXArray const & ar); #endif